-
Notifications
You must be signed in to change notification settings - Fork 1.4k
⚠️ Remove redundant fields from CABPK / KCP ClusterConfiguration #12319
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
⚠️ Remove redundant fields from CABPK / KCP ClusterConfiguration #12319
Conversation
ca99ede
to
08651fe
Compare
/test pull-cluster-api-e2e-conformance-ci-latest-main |
/test pull-cluster-api-e2e-upgrade-1-33-1-34-main |
1 similar comment
/test pull-cluster-api-e2e-upgrade-1-33-1-34-main |
08651fe
to
ab59897
Compare
/test pull-cluster-api-e2e-conformance-ci-latest-main |
/hold Only the last commit of this PR will remain (and is ready for review now) |
/assign @fabriziopandini @chrischdi |
lgtm for the last commit |
ab59897
to
45c844c
Compare
/test pull-cluster-api-e2e-conformance-ci-latest-main |
/assign @fabriziopandini @chrischdi ready now :) |
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.
Very nice cleanup! Thanks!
/lgtm
LGTM label has been added. Git tree hash: a0c5ef216b282171a7e2a87249d0f3e3afa32633
|
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.
Wondering if we should give a stronger warning about this change (or generalizing all the changes where we loose info in the v1beta1 (old client)->v1beta2 (storage) -> v1beta1 (old client) e.g.
If you are using git ops tools, either migrate to v1beta2 or make sure to drop following fields to prevent issues:
/test pull-cluster-api-e2e-conformance-ci-latest-main |
/lgtm |
LGTM label has been added. Git tree hash: 712ff84d071d051d01e9bff541d8cdbcf3bf3132
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
@sbueringer A question regarding setting In CAPIBM we use kube-vip and used to set one external IP for control-plane endpoint and internal IP for cluster, The cluster config looks like below
In kube-vip we use internal ip
With this field omission, IIUC the cluster.spec.controlplaneendpoint will be used in kubeadm config spec, So we are not able to use two different IPs. Or is there any other better way to manage this. |
Wow. I did not know that this is possible (cc @fabriziopandini) |
lets explore if these fields are helpful
|
It did not work upon configuring with this. Upon debugging further with @Karthik-K-N, the only work around which worked to get a successful cluster creation was adding a script in After removing the field from Replacing it with the internal IP which is configured with kube-vip
@sbueringer, would this be recommended or is there a better way to handle this? |
interesting! as per the api doc it should work, may be we need to explore why it is not working?! |
@mkumatag @Amulyam24 @Karthik-K-N Hey folks, |
@mkumatag @Amulyam24 @Karthik-K-N Please see: #12423 |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
The PR drops fields that can be configured by other means and thus don't have to exist redundantly on the ClusterConfiguration struct.
The removed fields are:
WIP for now because it contains #12303
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Part of #10852