-
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
[workspace-controller] CRDs are invalid on kubernetes >=1.18 #16791
Comments
cc: @davidfestal if you have any suggestions on this one. |
As a workaround, I'm able to deploy the controller with
|
This issue blocks deployment on OpenShift 4.5 |
I tried to work around this issue with the following changes sleshchenko/devworkspace-operator@b8a8e9b and I got working CloudShell with OpenShift OAuth on OpenShift 4.5.0-0.ci-2020-05-07-094159 Probably we must commit them or an alternative - copy/paste PodSpec from k8s API and fix kubebuilder annotations while it's not fixed on K8s API side. |
Workaround PR: devfile/devworkspace-operator#69, though I wouldn't consider its merging to actually "resolve" this issue. |
Merge PR to unblock controller on OpenShift 4.5. |
Probably, but I'm not sure how to phrase the issue :) |
It's still actual but we have workaround for that and propagating fix to openshift side could wait |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
https://github.com/devfile/devworkspace-operator/pull/478/files#diff-983170fb73220bb6bc10df0d85249e45f79577391c04edead6e33c39713d9b8aR749 makes me think that we can resolve it now after dropping patching. |
Is your task related to a problem? Please describe.
The
Components
andWorkspaceRoutings
custom resources in the Che workspace controller are invalid starting with Kubernetes 1.18:k8s 1.18 added validation to the keys used for
listType=map
; the component and workspacerouting subresources embedPodSpec
, which violates this requirement (Container.Ports definesprotocol
as a map key, butContainerPort.Protocol
is optional). See this comment on the PR for some additional detail.Additional context
Confirmed this with
operator-sdk v0.17.0
and kubectl:The text was updated successfully, but these errors were encountered: