Respect the KUBECONFIG environment variable if set
This commit is contained in:
parent
d301e200fb
commit
ee4f01c6ff
@ -25,7 +25,7 @@ from kubernetes.client import ApiClient, ConfigurationObject, configuration
|
||||
|
||||
from .config_exception import ConfigException
|
||||
|
||||
KUBE_CONFIG_DEFAULT_LOCATION = '~/.kube/config'
|
||||
KUBE_CONFIG_DEFAULT_LOCATION = os.environ.get('KUBECONFIG', '~/.kube/config')
|
||||
_temp_files = {}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user