-
Notifications
You must be signed in to change notification settings - Fork 99
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
Enable the support of NodeSelectors and tolerations on Jobs #1479
Enable the support of NodeSelectors and tolerations on Jobs #1479
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: houshengbo 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 |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1479 +/- ##
==========================================
- Coverage 79.32% 79.23% -0.09%
==========================================
Files 40 40
Lines 1775 1782 +7
==========================================
+ Hits 1408 1412 +4
- Misses 267 269 +2
- Partials 100 101 +1
☔ View full report in Codecov by Sentry. |
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 except for one nit.
@@ -61,6 +62,14 @@ func OverridesTransform(overrides []base.WorkloadOverride, log *zap.SugaredLogge | |||
ss.Spec.Replicas = override.Replicas | |||
} | |||
} | |||
if u.GetKind() == "Job" && u.GetGenerateName() == override.Name { | |||
ss := &batchv1.Job{} |
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.
ss := &batchv1.Job{} | |
job := &batchv1.Job{} |
nit: ss
is used for StatefulSet
above but here is job.
a4d57f8
to
22a3bc5
Compare
22a3bc5
to
9f4b20a
Compare
/lgtm |
/test serving-upgrade-tests |
Fixes: #1480