devspace
devspace copied to clipboard
Add support for --kubeconfig flag in devspace
We can pass --kubeconfig flag to kubectl, can we add the same support for devspace. This way user can type in something like this
devspace <pipeline stage> --kubeconfig=<path to kubeconfig file> -n <namespace>
instead of typing below commands
devspace use context <cn>
devspace use namespace <ns>
Is your feature request related to a problem?
No
Which solution do you suggest?
devspace <pipeline stage> --kubeconfig=<path to kubeconfig file> -n <namespace>
Which alternative solutions exist?
KUBECONFIG=<path to kubeconfig file> devspace <pipeline stage> -n <namespace>
Additional context
While it's easy to pass kubeconfig file or context using env variable and use context commands, it would really help in adding support for the kubeconfig flag as it would in sync with kubectl command and also one can use this when invoking devspace programmatically
/kind feature
@shubhamrajvanshi thanks for reporting this issue! Sounds good to me, we can add that to DevSpace!