-
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
Provision environment variables for initContainers of chePlugin/cheEditor #15508
Conversation
✅ 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 been successful:
|
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.
Changes LGTM, though using the posted devfile I encounter an error starting the workspace:
Unable to start workspace. Error when trying to start the workspace: Failure executing: POST at: https://172.30.0.1/apis/apps/v1/namespaces/amisevsk-che-2/deployments. Message: Deployment.apps "workspace0pe2qmn7e8843zap.empty-env" is invalid: spec.template.spec.volumes[2].name: Duplicate value: "hello". Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.template.spec.volumes[2].name, message=Duplicate value: "hello", reason=FieldValueDuplicate, additionalProperties={})], group=apps, kind=Deployment, name=workspace0pe2qmn7e8843zap.empty-env, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Deployment.apps "workspace0pe2qmn7e8843zap.empty-env" is invalid: spec.template.spec.volumes[2].name: Duplicate value: "hello", metadata=ListMeta(_continue=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
I don't see what would cause this though.
...main/java/org/eclipse/che/workspace/infrastructure/kubernetes/wsplugins/MachineResolver.java
Show resolved
Hide resolved
@amisevsk Thanks for catching it. On my Che installation, I don't face it, I think Che has some issue in volumes provisioning and depending on PVC strategy it can be reproduced. In my case a common PVC strategy is used, which PVC strategy do you use? |
@sleshchenko My deployment uses the |
Seems the same issue happens on master branch as well #15576 |
#15576 is a slightly different issue AFAIK, where an earlier version of codeserver had |
Can one of the admins verify this patch? |
…itor Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
25ca9f7
to
afe16e2
Compare
✅ 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 been successful:
|
@amisevsk I've reproduced the same issue you faced on the nightly image, so, it's not something that this PR introduces. Update: I've investigated this topic more and created a separate issue for that #15913. It's reproducible when K8s component has emptyDir, while editor provides persisted volume configuration. |
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 if the issue is in master.
What does this PR do?
Provisions environment variables for initContainers of chePlugin/cheEditor.
The only init container we have now for chePlugin/cheEditor - remote-plugin-laucher and I'm not sure if it makes sense to tune it. But I think if we provision additional, unused env vars to init containers - it won't hurt anyone in most cases but potentially can be used if there is need to tune initContainer of chePlugin/cheEditor and we will have consistent behavior for all component types.
What issues does this PR fix or reference?
If follows up #15435
How to test this PR
Che Server image build by Happy Path job: maxura/che-server:15508
Devfile
Release Notes
N/A
Docs PR
A note will be added to che docs if reviewers think it makes sense to provision env vars to initContainers as well.