-
Notifications
You must be signed in to change notification settings - Fork 300
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
LeaderWorkerSet integration #3515
LeaderWorkerSet integration #3515
Conversation
Skipping CI for Draft Pull Request. |
/assign |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/ok-to-test |
342d0de
to
4519993
Compare
/test all |
ff26e24
to
6630f22
Compare
6630f22
to
3036113
Compare
workerTemplateGroupNameLabelPath, | ||
)...) | ||
|
||
// TODO(#...): support resizes later |
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.
TODO create issue
sizePath, | ||
)...) | ||
|
||
// TODO(#...): support mutation of leader/worker templates later |
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.
TODO create issue
3036113
to
34aa49c
Compare
…ange InitContainers Image.
Co-authored-by: Michał Woźniak <[email protected]>
0d1767d
to
b482fff
Compare
@vladikkuzn: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
daf942e
to
e90983f
Compare
/unhold Done |
return apivalidation.ValidateImmutableField(mungedPodSpec, oldPodSpec, fieldPath) | ||
} | ||
|
||
func IsManagedByKueue(obj client.Object) bool { |
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.
The PR is already large so I think we can delegate it to a follow up, but it seems reasonable to me to commonize this code with WorkloadShouldBeSuspended. I think this code https://github.com/kubernetes-sigs/kueue/blob/main/pkg/controller/jobframework/defaults.go#L49-L57 should call the new function.
gomega.Expect(k8sClient.Get(ctx, wlLookupKey1, createdWorkload1)).To(gomega.Succeed()) | ||
}) | ||
|
||
ginkgo.By("Scale up LeaderWorkerSet", func() { |
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.
Thank you for the e2e tests, the ability for scaling of LWS is great!
LGTM label has been added. Git tree hash: 23116bd437c2e9503444abc12b661162535907ce
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mimowo, vladikkuzn 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 |
* LeaderWorkerSet integration * LeaderWorkerSet integration. * Keep the code consistent with STS * Revert manage warningForPodManagedLabel for create. * Add StartupPolicy validation. * More strict validation for pod-group name. * Add validation for PodTemplateSpec. * DeepCopy only one PodSpec on ValidateImmutablePodSpec and allow to change InitContainers Image. * Update pkg/controller/jobs/leaderworkerset/leaderworkerset_webhook.go Co-authored-by: Michał Woźniak <[email protected]> * Bump sigs.k8s.io/lws from v0.4.2 to v0.5.0. * Add e2e test cases to check scale-up and scale-down. * Update helm chart values.yaml. * Use IsManagedByKueue on LeaderWorkerSet. --------- Co-authored-by: Mykhailo Bobrovskyi <[email protected]> Co-authored-by: Michał Woźniak <[email protected]>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds LeaderWorkerSet integration to job framework
Which issue(s) this PR fixes:
Part of #3232
Special notes for your reviewer:
Does this PR introduce a user-facing change?