Respect the KUBECONFIG environment variable if set

This commit is contained in:
yuvipanda 2017-07-13 18:15:52 -07:00
parent d301e200fb
commit ee4f01c6ff

View File

@ -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 = {}