Skip to content

Conversation

@robinlioret
Copy link

@robinlioret robinlioret commented Nov 25, 2025

Adds nodeSelector, affinity and tolerations to the manager deployment template and values of the helm chart (v2-alpha).

Related issue: #4835

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 25, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: robinlioret / name: Robin LIORET (a417039)

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 25, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @robinlioret. Thanks for your PR.

I'm waiting for a github.com 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.

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.

@robinlioret robinlioret force-pushed the feat/helm/v2-alpha/add-tolerations-nodeselector-affinity branch from 57ce1af to 895231c Compare November 25, 2025 08:51
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 25, 2025
@vitorfloriano
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 3, 2025
@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. and removed cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 8, 2025
@robinlioret robinlioret force-pushed the feat/helm/v2-alpha/add-tolerations-nodeselector-affinity branch from c3b3709 to 8a3d353 Compare December 8, 2025 14:13
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Dec 8, 2025
@robinlioret robinlioret force-pushed the feat/helm/v2-alpha/add-tolerations-nodeselector-affinity branch 4 times, most recently from c5d400e to 92d1019 Compare December 8, 2025 16:49
@robinlioret robinlioret marked this pull request as draft December 9, 2025 08:08
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 9, 2025
@robinlioret robinlioret force-pushed the feat/helm/v2-alpha/add-tolerations-nodeselector-affinity branch 2 times, most recently from b4e70f4 to 401f109 Compare December 9, 2025 10:21
@robinlioret
Copy link
Author

The PR looks ready to be merged.

@robinlioret robinlioret force-pushed the feat/helm/v2-alpha/add-tolerations-nodeselector-affinity branch from 1457d0a to 6152c4d Compare December 9, 2025 14:53
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 10, 2025
@robinlioret robinlioret force-pushed the feat/helm/v2-alpha/add-tolerations-nodeselector-affinity branch from 6152c4d to 6240baa Compare December 11, 2025 08:29
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 11, 2025
@robinlioret robinlioret marked this pull request as draft December 11, 2025 08:30
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 11, 2025
@robinlioret robinlioret marked this pull request as ready for review December 11, 2025 08:31
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 11, 2025
camilamacedo86

This comment was marked as outdated.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 11, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, robinlioret

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 11, 2025
@robinlioret robinlioret changed the title ✨ (helm/v2-alpha) add tolerations, nodeselector and affinity ✨ (helm/v2-alpha) add tolerations, nodeselector and affinity Dec 11, 2025
@robinlioret
Copy link
Author

Thanks for approving the PR. I see two failing tests though.

  • Test GoReleaser and CLI Version / go-releaser-test (pull_request)

Fails while fetching https://github.com/anchore/syft/releases/latest (ERR 503)
Is it a rate limitation ? Can we restart this specific test to confirm ?

  • E2E Testdata Sample / e2e-tests-project-v4 (pull_request)

Fails like nothing was listening on the metric port.
I tried to generate the test-data again. No change.

manager:
    Port:          9443/TCP (webhook-server)
    Host Port:     0/TCP (webhook-server)
    Args:
      --metrics-bind-address=:8443

Is it a bug in the installation file ? Shouldn't it expose the 8443 port as well ?

@robinlioret robinlioret force-pushed the feat/helm/v2-alpha/add-tolerations-nodeselector-affinity branch from 6240baa to a417039 Compare December 12, 2025 08:10
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 12, 2025
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@camilamacedo86 camilamacedo86 removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2025
- key: kubernetes.io/os
operator: In
values:
- linux
Copy link
Member

Choose a reason for hiding this comment

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

This must be defined by who maintain the project and not who consume the project
If the image is not built for those then allowing who consume the solution via HelmChart add those will just end up in issues.

We should only expose values in the HelmCharts that make sense for who consume the solution.

@camilamacedo86
Copy link
Member

Hi @robinlioret,

Thanks for the contribution.

We can’t accept this change.

The Helm chart is only used to package and distribute a project.
It is not meant to define or change what the project supports.

Things like:

  • nodeSelector
  • affinity
  • tolerations
  • supported architectures / OS

are decisions made by the project maintainers, based on how the
controller image is built and tested. That must be configured in the manager and should appear in the manager file of the helm chart but not exposed via values.

If we expose these as Helm values, end users could deploy the controller
on nodes or platforms that the project does not support.
That would break the project’s support guarantees and may not work at all.

If a project needs specific scheduling rules, they must be defined by
the project itself
(for example in the manifests or kustomize),
not configured by Helm values.

For this reason, we don’t expose these options in the generated Helm chart.

Thanks again for the proposal.

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 13, 2025
@camilamacedo86 camilamacedo86 dismissed their stale review December 13, 2025 05:58

we cannot move forward with those one.
See: #5246 (comment)

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2025
@camilamacedo86 camilamacedo86 removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants