-
Notifications
You must be signed in to change notification settings - Fork 79
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
✨ Add featureGates to ControlPlaneProvider #536
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Welcome @kahirokunn! |
Hi @kahirokunn. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-operator ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
f0c4aea
to
4ba6b3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for this PR, can I you to add tests here https://github.com/kubernetes-sigs/cluster-api-operator/blob/main/test/e2e/helm_test.go?
hack/charts/cluster-api-operator/templates/infra-conditions.yaml
Outdated
Show resolved
Hide resolved
/ok-to-test |
/retest |
LGTM, but CI was not agreeing with me. Let's wait if retrigger helps (assuming it was a CI flake). |
We would need to check in template if feature gates are set before trying to access them, so that tests won't fail |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
@kahirokunn can you rebase on top of the main and look at the CI failure? This is almost ready to take in IMO |
24031f9
to
be3948d
Compare
@furkatgofurov7 I fixed it by checking for the existence of the value so that the nil pointer exception would not occur. |
@kahirokunn this looks good already, the only pending comment that needs addressing is #536 (review) |
be3948d
to
52c29db
Compare
@furkatgofurov7 |
@kahirokunn maybe you missed it, but what I was referring to miss in this patch seems to be updating a tests in https://github.com/kubernetes-sigs/cluster-api-operator/blob/main/test/e2e/helm_test.go as per review comment |
I understand. |
What this PR does / why we need it:
This PR adds support for specifying featureGates in the ControlPlaneProvider. This is particularly necessary when using infrastructure=docker, as we need to pass CLUSTER_TOPOLOGY=true to the kubeadm provider. Currently, there is no way to do this, and this feature is essential for enabling cluster topology features in kubeadm.
Usage Example:
To use this feature, you can install the capi-operator with Helm and specify the feature gates in your values file. Here is an example:
example-values.yaml
:Sample Output:
Here is a portion of the expanded manifest showing the applied feature gates:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #