This repository was archived by the owner on Mar 13, 2022. It is now read-only.
This repository was archived by the owner on Mar 13, 2022. It is now read-only.
kube_config.py fails to load config if no context is set #181
Closed
Description
I have an interactive application that let a user select a context (from the available contexts of a configuration). That works great but loading of the config fails if there's no active context set and no context is passed to the loader. In my case I cannot pass a context to the loader since I know contexts only after loading.
Solution: if no context is passed and no current-context is set, start without an active context.
python-base/config/kube_config.py
Line 175 in a2d1024