-
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
Make it possible to override values of the devfile by factory parameters #15220
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to simplify private JsonNode applyPropertiesOverride
, but I'm not sure how. It seems like we can miss lot of corner cases there. Might be dangerous if devfile structure get more complicated.
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
...workspace/src/test/java/org/eclipse/che/api/workspace/server/devfile/DevfileManagerTest.java
Outdated
Show resolved
Hide resolved
...workspace/src/test/java/org/eclipse/che/api/workspace/server/devfile/DevfileManagerTest.java
Outdated
Show resolved
Hide resolved
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
...api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/DevfileManager.java
Outdated
Show resolved
Hide resolved
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
crw-ci-test |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
...test/java/org/eclipse/che/api/factory/server/github/GithubFactoryParametersResolverTest.java
Outdated
Show resolved
Hide resolved
...test/java/org/eclipse/che/api/factory/server/github/GithubFactoryParametersResolverTest.java
Outdated
Show resolved
Hide resolved
...test/java/org/eclipse/che/api/factory/server/github/GithubFactoryParametersResolverTest.java
Outdated
Show resolved
Hide resolved
E2E tests of Eclipse Che Multiuser on OCP has been successful:
|
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM apart from some minor nitpicks.
...ce/src/main/java/org/eclipse/che/api/workspace/server/devfile/OverridePropertiesApplier.java
Outdated
Show resolved
Hide resolved
...ce/src/main/java/org/eclipse/che/api/workspace/server/devfile/OverridePropertiesApplier.java
Outdated
Show resolved
Hide resolved
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
ci-test |
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
ci-test |
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
ci-test |
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
ci-test |
E2E tests of Eclipse Che Multiuser on OCP has been successful:
|
What does this PR do?
This PR allows to override values of the devfile using factory parameters, in cases when direct editing of the devfile is inaccessible.
The value referencing rules are:
name
oralias
of the referenced object;name
oralias
found, error will be thrown.Few examples:
Override metadata.generateName:
http://<che.host>/f?url=https://..../devfile.yaml&metadata.generateName=foo-
Override project branch:
http://<che.host>/f?url=https://..../devfile.yaml&projects.p_name.source.branch=foo
Override component memory:
http://<che.host>/f?url=https://..../devfile.yaml&components.c_alias.memoryLimit=500Mi
What issues does this PR fix or reference?
#13617
Docs PR