Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit ee4f01c

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: config/kube_config.py

+1-1
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)