-
Notifications
You must be signed in to change notification settings - Fork 1.2k
support for nodeSelector and tolerations #1831
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
Changes from 8 commits
2a3599c
c12b184
fe5d361
cd0fd76
b1d4ae4
55fa4de
5d11517
6ec3fe7
a80b311
1689701
320db45
cfa23d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,6 +145,18 @@ type RevisionSpec struct { | |
| // https://github.com/knative/serving/issues/627 | ||
| // +optional | ||
| Container corev1.Container `json:"container,omitempty"` | ||
|
|
||
| // NodeSelector is a selector which must be true for the revision's pod(s) to | ||
| // fit on a node. | ||
| // Selector which must match a node's labels for the pod to be scheduled on | ||
| // that node. | ||
| // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | ||
| // +optional | ||
| NodeSelector map[string]string `json:"nodeSelector,omitempty"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This api change (and the Tolerations below it) should include a corresponding change to the spec at https://github.com/knative/serving/blob/master/docs/spec/spec.md and the conformance tests at https://github.com/knative/serving/tree/master/test/conformance, if applicable.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bbrowning I updated docs just now. I'm really not sure whether the conformance tests are applicable here, and if so, I'm not sure where to begin. |
||
|
|
||
| // If specified, the revision's tolerations. | ||
| // +optional | ||
| Tolerations []corev1.Toleration `json:"tolerations,omitempty"` | ||
| } | ||
|
|
||
| // RevisionConditionType is used to communicate the status of the reconciliation process. | ||
|
|
||
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.
This change was probably unintentionally included with this PR. I have the same local change and have almost accidentally included it in a PR as well 😄
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.
Whoops. That's embarrassing. Thank for catching it, @bbrowning.