-
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
Openshift connector and Che: the extension is not keeping the state after workspace restart. #15270
Comments
@sunix are you using persistent storage or ephemeral? Is the state preserved when you use the extension in VS Code? |
Persistent storage. Yes it works on VS Code |
It's because of kubeconfig isn't persisted between workspace restarts. Should be fixed by #14877 |
@azatsarynnyy i don't see how these are related: #14877 is about chectl |
If I understand it right, the solution |
Note that any VS Code extension can save state to a directory provided by the API, so the only general fix is to preserve that directory between workspace runs. |
Can not reproduce the bug. Looks like since we have the auto login feature, it is not relevant any more. Here is my steps to reproduce: |
Hey sorry, @vinokurig autologin is for login in the current openshift cluster. What if we log in another cluster? |
is this on track for Che 7.16? We'd like this to work OOTB in CRW 2.3. |
also ... has autologin #15261 been moved to CRW? |
Proposal: to keep the plugin state between workspace restarts we should have an additional PVC, like the |
@vinokurig yep so which folder(s) would you turn into volumes ? |
It think it should be a new folder somewhere in |
keeping the state of workspace between restarts in a volume sounds good to me |
Note that we sometimes run multiple copies of VS Code extensions in various containers (VSCode YAML, for example). This could lead to the plugins overwriting each other's state. So if this is going to be a general fix, we should follow up by doing something about that: IMO, running multiple copies of the same plugin is wrong anyway: we needed it because we could not remotely call plugin API. Now that we can, we should refactor our plugins and prevent multiple copies of the same plugin. |
The |
Describe the bug
When using the openshift connector, the state is lost after restart.
Che version
Steps to reproduce
Runtime
Installation method
The text was updated successfully, but these errors were encountered: