Skip to content

🌱 Checks for feature flag during VM reconciliation #1708

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

Merged

Conversation

srm09
Copy link
Contributor

@srm09 srm09 commented Nov 30, 2022

What this PR does / why we need it:
Adds the check for the state of the anti affinity feature flag when reconciling VM. When reconciling the VM, the cluster module info should be looked up only when the NodeAntiAffinity feature flag is turned on. This also solves the issue when the control plane provider is something other than the KubeadmControlPlane, in which case we do not want to allow checks for cluster module info.

Which issue(s) this PR fixes:
Fixes #1702

Special notes for your reviewer:
n/a

Release note:

Checks for feature flag during VM reconciliation

Adds the check for the state of the anti affinity feature flag when
reconciling VM. When reconciling the VM, the cluster module info should
be looked up only when the NodeAntiAffinity feature flag is turned on.
This also solves the issue when the control plane provider is something
other than the KubeadmControlPlane, in which case we do not want to
allow checks for cluster module info.

Signed-off-by: Sagar Muchhal <[email protected]>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 30, 2022
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 30, 2022
Copy link
Member

@yastij yastij left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yastij

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 1, 2022
@k8s-ci-robot k8s-ci-robot merged commit 5f3c55e into kubernetes-sigs:main Dec 1, 2022
@srm09
Copy link
Contributor Author

srm09 commented Dec 1, 2022

/cherry-pick release-1.5

@k8s-infra-cherrypick-robot

@srm09: new pull request created: #1717

In response to this:

/cherry-pick release-1.5

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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CAPV looking for KubeadmControlPlane despite using non-kubeadm control plane provider
4 participants