given multiple kubeconfigs with competing current-context
properties, the last defined property is used
#6787
Labels
current-context
properties, the last defined property is used
#6787
follows up on #6240
Describe the bug
Given using several kubeconfig files that all have a
current-context
property, the client is using the last one. It should use the one in the first file.The docs in kubernetes specify that the first file to contribute a
current-context
is used, further files do not override the first fileFabric8 Kubernetes Client version
7.0.0
Steps to reproduce
KUBECONFIG
set to use 2 config filescurrent-context
set in both filesconfig
minikube.yaml
Result
The current context is
minikube
Expected behavior
The current context should be
erroneous
and thusconfig.getCurrentContext()
returnnull
The text was updated successfully, but these errors were encountered: