-
Notifications
You must be signed in to change notification settings - Fork 88
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 spec.devEnvironments.runtimeClassName field to CR #1899
Conversation
Skipping CI for Draft Pull Request. |
Signed-off-by: admin <[email protected]>
77fc70c
to
b7d43e7
Compare
Signed-off-by: admin <[email protected]>
b7d43e7
to
813dcbf
Compare
@@ -155,6 +155,9 @@ type CheClusterDevEnvironments struct { | |||
// If not specified, the pod scheduler is set to the default scheduler on the cluster. | |||
// +optional | |||
PodSchedulerName string `json:"podSchedulerName,omitempty"` | |||
// RuntimeClassName specifies the spec.runtimeClassName for workspace pods. | |||
// +optional | |||
RuntimeClassName *string `json:"runtimeClassName,omitempty"` |
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.
I've set the type to *string
because that is the type for RuntimeClassName
in PodSpec
struct:
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.
Maybe PodRuntimeClassName
?
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.
IMHO I don't know if it's necessary since we have names such as:
che-operator/api/v2/checluster_types.go
Lines 95 to 100 in 813dcbf
// The node selector limits the nodes that can run the workspace pods. | |
// +optional | |
NodeSelector map[string]string `json:"nodeSelector,omitempty"` | |
// The pod tolerations of the workspace pods limit where the workspace pods can run. | |
// +optional | |
Tolerations []corev1.Toleration `json:"tolerations,omitempty"` |
@dkwon17: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dkwon17, tolusha The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build 3.17 :: operator_3.x/401: Console, Changes, Git Data |
Build 3.17 :: sync-to-downstream_3.x/7719: Console, Changes, Git Data |
Build 3.17 :: push-latest-container-to-quay_3.x/4932: Console, Changes, Git Data |
Build 3.17 :: get-sources-rhpkg-container-build_3.x/7711: devspaces-operator : 3.x :: Build 64352253 : quay.io/devspaces/devspaces-rhel8-operator:3.17-13 |
Build 3.17 :: operator_3.x/401: Upstream sync done; /DS_CI/sync-to-downstream_3.x/7719 triggered |
Build 3.17 :: update-digests_3.x/7580: Console, Changes, Git Data |
Build 3.17 :: operator-bundle_3.x/3617: Console, Changes, Git Data |
Build 3.17 :: sync-to-downstream_3.x/7720: Console, Changes, Git Data |
Build 3.17 :: push-latest-container-to-quay_3.x/4933: Console, Changes, Git Data |
Build 3.17 :: sync-to-downstream_3.x/7720: Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/7712 triggered; /job/DS_CI/job/dsc_3.x triggered; |
Build 3.17 :: operator-bundle_3.x/3617: Upstream sync done; /DS_CI/sync-to-downstream_3.x/7720 triggered |
Build 3.17 :: copyIIBsToQuay/2796: Console, Changes, Git Data |
Build 3.17 :: dsc_3.x/2003: Console, Changes, Git Data |
Build 3.17 :: update-digests_3.x/7580: Detected new images: rebuild operator-bundle |
Build 3.17 :: dsc_3.x/2003: 3.17.0-CI |
What does this PR do?
Fixes eclipse-che/che#23032
Screenshot/screencast of this PR
What issues does this PR fix or reference?
How to test this PR?
OpenShift
on Minikube
spec.runtimeClassName
field.spec.devEnvironments.runtimeClassName
field tomy-custom-runtime
spec.runtimeClassName
filed set tomy-custom-runtime
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.