Skip to content

Support --master without --kubeconfig #1859

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qbnit0
Copy link

@qbnit0 qbnit0 commented Jun 3, 2025

If --master is specified, but --kubeconfig is not, use in-cluster config and override the API server host.

This would fix #1614.

@qbnit0 qbnit0 force-pushed the incluster-with-master branch from f63f76f to 560dcd4 Compare June 3, 2025 17:37
If --master is specified, but --kubeconfig is not, use in-cluster config
and override the host. Previous behaviour was to use out-of-cluster
config anyway (and fail).
@qbnit0 qbnit0 force-pushed the incluster-with-master branch from 560dcd4 to 6d2566f Compare June 3, 2025 17:39
@qbnit0
Copy link
Author

qbnit0 commented Jun 3, 2025

Just did a quick test, works as expected.

@qbnit0 qbnit0 marked this pull request as ready for review June 3, 2025 19:48
@qbnit0
Copy link
Author

qbnit0 commented Jun 3, 2025

Let me know if I need to change the if-elseif-else to a switch to appease gocritic. An if-elseif-else seems more logical to me here, though.

@aauren
Copy link
Collaborator

aauren commented Jun 4, 2025

Thanks for submitting this! I'll try to take a look soon!

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.

Fix CLI Options - --master doesn't work without --kubeconfig
2 participants