Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not blindly overwrite kube config #263

Merged
merged 9 commits into from
Dec 1, 2023

Conversation

roivanov
Copy link
Contributor

@roivanov roivanov commented Nov 30, 2023

Changes

Merge with existing kube config, do not overwrite existing file

Linked Issues

#259

One issue still needs to be addressed is when cluster names are identical

@roivanov roivanov marked this pull request as ready for review November 30, 2023 08:49
roles/k3s_server/tasks/main.yml Outdated Show resolved Hide resolved
roles/k3s_server/tasks/main.yml Outdated Show resolved Hide resolved
roivanov and others added 9 commits November 30, 2023 22:52
Signed-off-by: Roman Ivanov <[email protected]>
Signed-off-by: Roman Ivanov <[email protected]>
Signed-off-by: Roman Ivanov <[email protected]>
Signed-off-by: Roman Ivanov <[email protected]>
Signed-off-by: Roman Ivanov <[email protected]>
Co-authored-by: Derek Nola <[email protected]>
Signed-off-by: Roman Ivanov <[email protected]>
Signed-off-by: Roman Ivanov <[email protected]>
@zen
Copy link

zen commented Dec 1, 2023

Guys, why not allow user to define kubeconfig location? We use multiple configs and export KUBECONFIG based on project - it's very convenient

@dereknola
Copy link
Member

@zen I'm happy to open another future PR to address that case. I did think it was weird that this project originally overrode the base kubeconfig, but I kept it in because I didn't know if users actually liked that or what.

@dereknola dereknola merged commit ec02f1c into k3s-io:master Dec 1, 2023
2 checks passed
@roivanov roivanov deleted the romani/save_config branch December 1, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants