Monokle doesn't parse multiple-files KUBECONFIG variable. Separated by ":".
fog1985 opened this issue · comments
Describe the bug
Monokle doesn't parse multiple-files KUBECONFIG variable. Separated by ":".
E.G.:
env | grep -i kube
KUBECONFIG=/Users/user/.kube/config:/Users/user/.kube/config_personal:/Users/user/.kube/config_other
it just says "No cluster detected".
To Reproduce
Steps to reproduce the behavior:
- Create multiple kubeconfig files. With server/context in each.
- Create env variable: export KUBECONFIG=/Users/user/.kube/config:/Users/user/.kube/config_personal:/Users/user/.kube/config_other
- Run monokle.
- Go into cluster discover mode.
Expected behavior
it parses multiple files in tha path and extracts all the possible contexts.
Desktop (please complete the following information):
- OS: [MacOS]
- Version [13.4.1 (22F82) - Ventura]
Additional context
Add any other context about the problem here.
Thanks @fog1985 - digging in..