Support for NodeSelector and Tolerations.#3467
Support for NodeSelector and Tolerations.#3467markusthoemmes wants to merge 1 commit intoknative:masterfrom
Conversation
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the ℹ️ Googlers: Go here for more info. |
knative-prow-robot
left a comment
There was a problem hiding this comment.
@markusthoemmes: 0 warnings.
Details
In response to this:
Took this over from @krancour to rebase to master and push it through.
Proposed Changes
- Support for nodeSelector and tolerations in revision spec
Release Note
Support for nodeSelector and tolerations in revision spec
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/test-infra repository.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: markusthoemmes If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/assign @mattmoor I think this needs superpowers to merge. |
|
Confirming that I'm good with this PR that includes my commits. Is there a slash command to convey that?? |
Co-authored-by: Markus Thömmes <markusthoemmes@me.com>
fb011f9 to
2d8abed
Compare
|
The following is the coverage report on pkg/.
|
There is no slash command. It requires a project owner to override the bot and make the merge happen as Markus suggested. |
|
/test pull-knative-serving-upgrade-tests |
2 similar comments
|
/test pull-knative-serving-upgrade-tests |
|
/test pull-knative-serving-upgrade-tests |
|
Can't wait for the 0.5 release... /test pull-knative-serving-upgrade-tests |
|
/test pull-knative-serving-upgrade-tests |
|
I'm not sure we ever adequately discussed this at the WG (or v1beta1 task force), and I know this makes a number of folks uneasy (myself included). Nodeful concepts like these feel like really leaky Ops abstractions to allow in our API. I'll add this to the taskforce backlog. |
| Paths: []string{"operator"}, | ||
| } | ||
| } | ||
| // validate toleration effect, empty toleration effect means match all taint |
There was a problem hiding this comment.
| // k8s.io/kubernetes/pkg/apis/core/validation. Although relevant functions from | ||
| // that package are exported, they're not usable here because they are for | ||
| // unversioned resources. | ||
| func validateToleration(toleration corev1.Toleration) *apis.FieldError { |
There was a problem hiding this comment.
| } | ||
|
|
||
| if err := validateNodeSelector(rs.NodeSelector); err != nil { | ||
| return err.ViaField("nodeSelector") |
There was a problem hiding this comment.
Append to errs instead of returning?
| } | ||
| for i, toleration := range rs.Tolerations { | ||
| if err := validateToleration(toleration); err != nil { | ||
| return err.ViaField( |
There was a problem hiding this comment.
Append to errs instead of returning?
| ServiceAccountName: rev.Spec.ServiceAccountName, | ||
| TerminationGracePeriodSeconds: &revisionTimeout, | ||
| NodeSelector: rev.Spec.NodeSelector, | ||
| Tolerations: rev.Spec.Tolerations, |
There was a problem hiding this comment.
Can we confirm these are mutable.
If not we will need changes to the checkAndUpdateDeployment logic here:
serving/pkg/reconciler/v1alpha1/revision/cruds.go
Lines 66 to 68 in bbe4c2f
|
Closing this for now until we have stronger opinions on really needing this. |
|
This is a nice feature to have :) |
Fixes #1816
Closes #1831
Took this over from @krancour to rebase to master and push it through.
Proposed Changes
Release Note