add flag `--kubeconfig` for kubernetes plugin
Closed this issue · 3 comments
haiker2011 commented
some time we may need use external kubeconfig to init k8s client, now kubernetes plugin only support default kubeConfig
tg123 commented
env var KUBECONFIG
is supported
but i agree to add --kubeconfig
, seems there was already an option in sdk
haiker2011 commented
@tg123 I am not found env var KUBECONFIG in doc and code, so i add this issue
tg123 commented
from k8s sdk, the plugin uses it to load kubeconfig
https://github.com/kubernetes/client-go/blob/v0.29.0/tools/clientcmd/loader.go#L160