Skip to content

Commit ee4f01c

Browse files
committed
Respect the KUBECONFIG environment variable if set
1 parent d301e20 commit ee4f01c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/kube_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
from .config_exception import ConfigException
2727

28-
KUBE_CONFIG_DEFAULT_LOCATION = '~/.kube/config'
28+
KUBE_CONFIG_DEFAULT_LOCATION = os.environ.get('KUBECONFIG', '~/.kube/config')
2929
_temp_files = {}
3030

3131

0 commit comments

Comments
 (0)