Allow build to specify node selectors#236
Allow build to specify node selectors#236google-prow-robot merged 2 commits intoknative:masterfrom shashwathi:add-nodeselector
Conversation
|
/assign @imjasonh |
|
Does this also allow builds to specify node affinity/anti-affinity? That would probably be useful to support too, but I'm a bit worried about adding both of these as top-level fields to the It could also be useful to add an integration test which demonstrates this somehow, though adding a selector that requires I'm not sure what happens when the cluster can't schedule a pod because of its selectors, does it eventually fail the pod and therefore the build? Maybe the integration test could have a node selector for some unsatisfiable requirement, and |
I submitted another PR for node affinity/anti-affinity.
Yes it fails the build since pod does not get created when nodes with selectors are not found.
Sure. I can add that.
I am leaning towards using top level field because the usage of both |
|
/test all |
|
I tried to add build yaml with a selector which is unavailable This above example does not fall into "Build Failure" case because build k8s resources(pods) never get allocated and build is in We need to surface the resource error at build level. |
imjasonh
left a comment
There was a problem hiding this comment.
Worth noting that a build that specifies nodeSelector with the google builder implementation (calling out to GCB) will not have their node selector respected. That's probably fine to just ignore it, but it might be confusing if users start actually using the google builder.
Anyway,
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ImJasonH, shashwathi 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 |
* Allow build to specify node selectors * Update codegen
* Allow build to specify node selectors * Update codegen
Addresses #116
Proposed Changes