devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Add support for --kubeconfig flag in devspace

Open shubhamrajvanshi opened this issue 1 year ago • 1 comments

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 avatar Aug 02 '22 17:08 shubhamrajvanshi

@shubhamrajvanshi thanks for reporting this issue! Sounds good to me, we can add that to DevSpace!

FabianKramm avatar Aug 08 '22 22:08 FabianKramm