Open eye0fra opened 2 weeks ago
Hello @eye0fra, could you please elaborate more on:
Verify that your workspace is configured to use this kubeconfig. (kubedock is working)
, could you please provide some description related to kubedoc.oc whoami
command? was it your local machine terminal, or workspace pod's terminal?
Currently I was able to reproduce the case where the config file changes from JSON to YAML in the workspace dev container terminal, but that did not affect the oc commands.
Describe the bug
Hello, I've encountered an issue with Kubernetes context renewal/injection. Initially, the kubeconfig is in JSON format. However, when I use the oc command line to log into a different cluster for testing, the format switches to YAML. Upon restarting the workspace, the injection process disrupts the YAML file, causing it to become a single inline entry. Consequently, the kubeconfig becomes unusable, affecting all related dependencies, such as kubedock. The current workaround is to delete the kubeconfig and restart the workspace to restore the correct kubeconfig format.
Che version
7.94@latest
Steps to reproduce
Initial Setup:
kubeconfig
. (kubedock is working)Switch Cluster:
oc
command line tool to log into a different OpenShift cluster:kubeconfig
format changes to YAML.Restart Workspace:
Observe the Issue:
kubeconfig
file. It should now be a single inline YAML entry.kubedock
and observe failures due to the malformedkubeconfig
.Workaround:
kubeconfig
format.Expected behavior
The kubeconfig should maintain its format and functionality after switching context.
Runtime
OpenShift
Screenshots
Installation method
OperatorHub
Environment
other (please specify in additional context)
Eclipse Che Logs
No response
Additional context
OpenShift DevSpaces 3.16.1