-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
KubeadmConfig controller should not rely on previously set status #3134
Comments
Nb. if we implement lookup for existing secrets, this logic potentially can be removed cluster-api/bootstrap/kubeadm/controllers/kubeadmconfig_controller.go Lines 801 to 803 in 7b97621
|
/priority backlog |
/kind cleanup |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
/help |
@CecileRobertMichon: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
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. |
/milestone v1.0 |
/assign @fabriziopandini |
/unassign |
/assign |
@ramineni Have you had time to work on this? |
@killianmuldoon sorry for the delay . Got time to get back on this. Could you help me understand is this issue still relevant now? I see code is changed around
this doesn't exist in reconcile loop anymore,
Is this the pending item? Thanks, |
/triage accepted |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
The Cluster API project currently lacks enough active contributors to adequately respond to all issues and PRs. This is more a code smell than something that creates real issues, and the issue is mostly inactive since sept 2022 |
@fabriziopandini: Closing this issue. In response to this:
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. |
What did you expect to happen:
As per comment #3122 (comment) and #3125 (comment)
The KubeadmConfig controller implements a subset of reconcile logic in the main reconcile loop
cluster-api/bootstrap/kubeadm/controllers/kubeadmconfig_controller.go
Lines 198 to 242 in 7b97621
We should move this to separated reconcile func, and make sure the logic does not rely on previously set status. Instead, it should check for the real state of things. E.g. Instead of checking status for ensuring the secret was created in a previous reconciliation loop, we should check if the secret actually exists.
/kind bug
/area bootstrap
The text was updated successfully, but these errors were encountered: