-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubeconfig Format Corruption After Switching Clusters and Restarting Workspace #23238
Labels
area/devworkspace-operator
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
Comments
eye0fra
added
the
kind/bug
Outline of a bug - must adhere to the bug report template.
label
Nov 7, 2024
che-bot
added
the
status/need-triage
An issue that needs to be prioritized by the curator responsible for the triage. See https://github.
label
Nov 7, 2024
dkwon17
added
severity/P2
Has a minor but important impact to the usage or development of the system.
area/devworkspace-operator
severity/P1
Has a major impact to usage or development of the system.
and removed
status/need-triage
An issue that needs to be prioritized by the curator responsible for the triage. See https://github.
severity/P2
Has a minor but important impact to the usage or development of the system.
labels
Nov 12, 2024
Hello @eye0fra, could you please elaborate more on:
|
vinokurig
moved this from Unplanned Tasks
to Pending Customer Input
in Eclipse Che Team A Backlog
Nov 15, 2024
vinokurig
moved this from Pending Customer Input
to Analyzing
in Eclipse Che Team A Backlog
Nov 15, 2024
ibuziuk
moved this to Analyzing
in Red Hat OpenShift Dev Spaces and WebTerminal Priorities
Nov 15, 2024
|
@eye0fra According to the error this is a formatting issue, can you provide the content of the |
@eye0fra Could you please provide the cluster's kubernetes version as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/devworkspace-operator
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
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
The text was updated successfully, but these errors were encountered: