Skip to content
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

What is the proper way to edit a devfile? #23079

Open
meanderix opened this issue Aug 8, 2024 · 3 comments
Open

What is the proper way to edit a devfile? #23079

meanderix opened this issue Aug 8, 2024 · 3 comments
Labels
area/devfile-spec Issues related to Devfile v2 area/ux Issues related to User Experience Design engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@meanderix
Copy link

meanderix commented Aug 8, 2024

Summary

I'm currently using Openshift Devspaces 3.15. I've configured my own devfile and committed it to a private git repository.

As an initial comment, I don't see how one would go about checking out the devfile from a private git repository (how would one provide the ssl keys?)

As a work-around I was able to get the raw content of the devfile using i url similar to this: [user]:[secret]@api.bitbucket.org/2.0/repositories/[project]/[repo]/src/[branch]/devfile.yaml

In a previous devspaces version, the devfile was editable in the administrative interface, but this feature is now disabled (possible related to #21606).

Next I attempted to commit a new version of the devfile to the git repository. I could verify that the previous link returned the updated content, but still the devfile associated with the workspace would not be updated. I was considering whether this is related to #21184.

What is the currently accepted way to edit the devfile?

Thanks in advance.

Edit: I've also found some references to the "restart from local devfile" command in the IDE. However, it does not appear when I hit the "Dev Spaces" panel in the status bar.

Relevant information

No response

@meanderix meanderix added the kind/question Questions that haven't been identified as being feature requests or bugs. label Aug 8, 2024
@che-bot 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 Aug 8, 2024
@meanderix
Copy link
Author

A short follow-up: the command "restart workspace from local devfile" did appear with a newly created workspace (but it was not shown in the existing one).

@RomanNikitenko
Copy link
Member

but it was not shown in the existing one

could you share version of the editor?
Help => About

@svor
Copy link
Contributor

svor commented Aug 9, 2024

Edit devfile in the workspace and execute Restart workspace from local devfile task should be the best way to update the workspace.
It also possible to use OpenShift console: https://youropenshifturl.com/k8s/ns//workspace.devfile.iov1alpha2DevWorkspace. This is how it'd look if you go through OCP console:
screenshot-nimbusweb me-2024 08 09-12_07_36
screenshot-nimbusweb me-2024 08 09-12_14_05 (1)

After saving changes your workspace will be automatically restarted

@svor svor added engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. area/ux Issues related to User Experience Design area/devfile-spec Issues related to Devfile v2 and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-spec Issues related to Devfile v2 area/ux Issues related to User Experience Design engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

4 participants