Skip to content

Conversation

fakman0
Copy link
Contributor

@fakman0 fakman0 commented Jul 2, 2025

What this PR does / why we need it:
This PR improves the OpenStack Cloud Controller Manager (OCCM) scheduling configuration by replacing the nodeSelector with more flexible nodeAffinity. The change:

  • Replaces nodeSelector: node-role.kubernetes.io/control-plane: "true" with nodeAffinity using operator: Exists
  • Provides better compatibility across different Kubernetes distributions where control-plane nodes might have the label with different values (empty string "", "true", "yes", etc.)

Which issue this PR fixes(if applicable):
Not related.

Special notes for reviewers:

  • The nodeAffinity with operator: Exists only checks for the presence of the node-role.kubernetes.io/control-plane label, regardless of its value
  • This approach is more compatible with various Kubernetes distributions (kubeadm, RKE2, k3s, minikube, etc.) that might set different values for the control-plane label
  • The scheduling behavior remains the same - OCCM will still only run on control-plane nodes
  • nodeAffinity is the recommended modern approach over nodeSelector for more complex scheduling requirements

Release note:

[occm] Improved OCCM scheduling robustness by replacing nodeSelector with nodeAffinity for better compatibility across Kubernetes distributions.

@k8s-ci-robot k8s-ci-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jul 2, 2025
Copy link

linux-foundation-easycla bot commented Jul 2, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

The full list of commands accepted by this bot can be found 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 requested a review from kayrus July 2, 2025 13:11
@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jul 2, 2025
@k8s-ci-robot k8s-ci-robot requested a review from mdbooth July 2, 2025 13:11
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 2, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @fakman0. Thanks for your PR.

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

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. 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 Jul 2, 2025
@kayrus
Copy link
Contributor

kayrus commented Jul 2, 2025

/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 Jul 2, 2025
@kayrus
Copy link
Contributor

kayrus commented Jul 2, 2025

/test openstack-cloud-controller-manager-ovn-e2e-test
/test openstack-cloud-controller-manager-e2e-test

@bnallapeta
Copy link

Can we please merge this once it goes through the due review process? Users have been facing this issue trying to follow out of the box instructions.

cc @kayrus

@fakman0
Copy link
Contributor Author

fakman0 commented Sep 7, 2025

@kayrus @mdbooth

@mnaser
Copy link
Contributor

mnaser commented Sep 8, 2025

/lgtm

@k8s-ci-robot
Copy link
Contributor

@mnaser: changing LGTM is restricted to collaborators

In response to this:

/lgtm

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.

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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants