-
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
Add support for Templates in OpenShift recipes #12583
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.
LGTM. Nice to see templates supported by Kubernetes/OpenShfit infrastructure 👍
A small remark to the recipe for testing: indentation is missing before memory field. Resources should be
resources:
limits:
memory: 512Mi
@amisevsk Note that Kubernetes/OpenShfit recipe is also parsed as the list here https://github.com/eclipse/che/blob/master/wsmaster/che-core-api-devfile/src/main/java/org/eclipse/che/api/devfile/server/DevfileEnvironmentFactory.java#L122 |
@sleshchenko I'm not terribly familiar with the devfile codepaths, but it looks like the task would be more complicated there, since it specifically outputs Kubernetes List yaml -- even if we could unmarshal lists/templates, it's not clear how to preserve this when converting back to yaml. I'll create an issue. |
ci-test |
Issue here: #12592 |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
@vkuznyetsov @rhopp could we please get QA approval before merging to master ? |
Selenium tests execution on Eclipse Che Multiuser on OCP (https://ci.codenvycorp.com/job/che-pullrequests-test-ocp/1511/) doesn't show any regression against this Pull Request. |
@@ -137,12 +130,12 @@ public void shouldCreateOpenShiftEnvironmentWithServicesFromRecipe() throws Exce | |||
|
|||
@Test | |||
public void shouldCreateOpenShiftEnvironmentWithPVCsFromRecipe() throws Exception { | |||
// given | |||
// givewhen(loadedRecipe.get()).thenReturn(n |
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.
looks like a typo
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.
Accidental paste -- thanks!
Add support for Templates as OpenShift recipes, with parameters - If the parameter does not have a default value, it is substituted with an empty string - If the parameter has a default value, it is substituted when launching the workspace - Generated parameter values are not supported This commit does not add dashboard validation, so starting a workspace based off a template requires manually editing the workspace config rather than creating a new stack. Signed-off-by: Angel Misevski <[email protected]>
ci-test |
@dmytro-ndp do you think that comment fix in the unit test requires whole e2e cycle rerun? |
@amisevsk feel free to merge this right away, do not wait for e2e tests report after comment change... |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
No, I don't think so. |
What does this PR do?
Add support for Templates as OpenShift recipes, with parameters
an empty string
the workspace
This commit does not add dashboard validation (separate PR: #12582), so starting a workspace based off a template requires manually editing an existing workspace config rather than creating a new stack.
The actual change is quite simple: the actual code difference amounts to
instead of
Sample recipe:
Above recipe formatted for pasting into existing config:
What issues does this PR fix or reference?
#11504
Release Notes
Support OpenShift templates in workspace stack recipes.
Docs PR
Still TODO: docs need to be updated with routes/secrets/templates/etc. notes.