Add an option to flux-cli to use the namespace declared in the kubeconfig context #2768
-
Hi, It will be great to add an option to flux-cli to use the namespace declared in the kubeconfig context This will allow us, when we work on specific namespace, to use both kubectl and flux without specifying -n. |
Beta Was this translation helpful? Give feedback.
Answered by
stefanprodan
May 25, 2022
Replies: 1 comment 2 replies
-
Right now we allow changing the default namespace from export FLUX_SYSTEM_NAMESPACE=my-namespace We could introduce a new env var that would make the CLI read the namespace from the kubeconfig current context e.g.: export FLUX_SYSTEM_NAMESPACE_FROM_CONTEXT=true |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pmialon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now we allow changing the default namespace from
flux-system
to something else with:export FLUX_SYSTEM_NAMESPACE=my-namespace
We could introduce a new env var that would make the CLI read the namespace from the kubeconfig current context e.g.:
export FLUX_SYSTEM_NAMESPACE_FROM_CONTEXT=true