Skip to content

Expose nodeSelector in knative-operator Helm chart - #2358

Open
magic-peach wants to merge 1 commit into
knative:mainfrom
magic-peach:feat/helm-chart-node-selector
Open

magic-peach wants to merge 1 commit into
knative:mainfrom
magic-peach:feat/helm-chart-node-selector

Conversation

@magic-peach

Copy link
Copy Markdown

Fixes #2305

The chart already exposes affinity and tolerations for the operator and operator-webhook deployments, but scheduling to a dedicated node pool with a plain nodeSelector meant falling back to a more verbose affinity.nodeAffinity expression instead. This adds nodeSelector alongside the existing affinity and tolerations values for both deployments, matching the pattern already used for those two fields.

Tested with go build ./..., helm lint on the rendered chart, and helm template with default values (confirms no nodeSelector block renders, matching existing behavior for affinity/tolerations) and with nodeSelector values set (confirms it renders correctly under spec.template.spec for both deployments).

The chart already exposes affinity and tolerations for the operator
and operator-webhook deployments, but scheduling to a dedicated node
pool with a plain nodeSelector meant falling back to a more verbose
affinity.nodeAffinity expression. Add nodeSelector alongside the
existing affinity and tolerations values for both deployments.

Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
@knative-prow

knative-prow Bot commented Sep 19, 2026

Copy link
Copy Markdown

Hi @magic-peach. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@knative-prow knative-prow Bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 19, 2026
@knative-prow
knative-prow Bot requested review from aliok and kahirokunn September 19, 2026 03:58

@kahirokunn kahirokunn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2026
@knative-prow

knative-prow Bot commented Sep 19, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kahirokunn, magic-peach
Once this PR has been reviewed and has the lgtm label, please assign dprotaso for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose nodeSelector in knative-operator Helm chart

2 participants