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

Add an option to use a custom configuration file for kubectl #18

Open
zostay opened this issue Nov 26, 2024 · 0 comments
Open

Add an option to use a custom configuration file for kubectl #18

zostay opened this issue Nov 26, 2024 · 0 comments

Comments

@zostay
Copy link
Owner

zostay commented Nov 26, 2024

A recurring problem is multiple context support. However, each cluster only needs one context configuration. The kubectl command does not provide a way, as far as I can determine, to select context via environment, which would allow genifest to easily select the context for duration of working with a cluster. However, it does provide a KUBECONFIG environment for selecting the configuration. So, I think the solution is to add a kubeconfig option to the cluster configuration and then set that environment variable to that file. Then, each project can have a standard location for the file (preferably locked out from commit via .gitignore).

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

No branches or pull requests

1 participant