-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: add workspace.defaultSchedulerName to DWOC #976
Conversation
Signed-off-by: David Kwon <[email protected]>
Codecov ReportBase: 50.20% // Head: 50.28% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #976 +/- ##
==========================================
+ Coverage 50.20% 50.28% +0.08%
==========================================
Files 39 39
Lines 2484 2488 +4
==========================================
+ Hits 1247 1251 +4
Misses 1107 1107
Partials 130 130
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
// DefaultSchedulerName is the name of the pod scheduler for DevWorkspace pods. | ||
// If not specified, the pod scheduler is set to the default scheduler. | ||
DefaultSchedulerName string `json:"defaultSchedulerName,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.
Slightly unclear -- field is DefaultSchedulerName
and value if not set is the default scheduler.
// DefaultSchedulerName is the name of the pod scheduler for DevWorkspace pods. | |
// If not specified, the pod scheduler is set to the default scheduler. | |
DefaultSchedulerName string `json:"defaultSchedulerName,omitempty"` | |
// DefaultSchedulerName is the name of the pod scheduler for DevWorkspace pods. | |
// If not specified, the pod scheduler is set to the default scheduler on the cluster. | |
DefaultSchedulerName string `json:"defaultSchedulerName,omitempty"` |
We should also consider renaming field to just schedulerName
to match some other fields (ImagePullPolicy
, StorageClassName
, etc.)
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.
Sounds good, changed to schedulerName
for now cc @ibuziuk
Deployment templates also need to be regenerated:
|
…hedulerName Signed-off-by: David Kwon <[email protected]>
…_olm_bundle_yaml' Signed-off-by: David Kwon <[email protected]>
Thanks for the review @amisevsk , I've made the changes and updated |
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, thanks @dkwon17 :)
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.
👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amisevsk, AObuchow, dkwon17, ibuziuk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: David Kwon [email protected]
What does this PR do?
Adds the
workspace.schedulerName
config to the DW operator config.What issues does this PR fix or reference?
Part of eclipse-che/che#21803
Is it tested? How?
workspace.defaultSchedulerName
in the DWOC resource in thedevworkspace-controllers
namespace. Example:oc apply -f samples/theia-next.yaml
spec.schedulerName
is thedefaultSchedulerName
from the DWOC resource:(pod won't start of course, because the scheduler doesn't exists)
pod-overrides
in the DW is used to set theschedulerName
, confirm that the scheduler name from thepod-overrides
is set instead of the scheduler name from the DWOC. For example, create this DW and confirm that the pod'sspec.schedulerName
isstork
:PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-path
to trigger)v8-devworkspace-operator-e2e
: DevWorkspace e2e testv8-che-happy-path
: Happy path for verification integration with Che