-
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
ClusterClass template name *only* update triggers reconcilliation #5227
Comments
@fabriziopandini @sbueringer Am I right in saying the above is a bug that should be fixed? |
I think yes. We can pair on debugging this by running it through the debugger if you want (but next week) |
/area topology |
@killianmuldoon and I debugged it and the rollout is triggered because of metadata changes in the desired template {
"metadata": {
"annotations": {
"cluster.x-k8s.io/cloned-from-name": "my-cluster-md-0-2",
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"infrastructure.cluster.x-k8s.io/v1alpha4\",\"kind\":\"DockerMachineTemplate\",\"metadata\":{\"annotations\":{},\"name\":\"my-cluster-md-0-2\",\"namespace\":\"default\"},\"spec\":{\"template\":{\"spec\":{}}}}\n"
}
}
} So I think it's fine for now. I want to open an issue for consistent metadata (label/annotations) rollout anyway. I'll link it here and then close the current issue |
/assign |
I have still to investigate this, but it seems to me that we should not trigger rollout to align annotations or labels. However this has different nuances in KCP (and possible other control plane providers) and machine deployments, and I need some time to dig into... |
@fabriziopandini My plan for the issue was mostly to investigate how we currently propagate labels/annotations on KCP/MD/MS to MS/M InfrastructureMachineTemplate, BootstrapConfigTemplate, InfrastructureMachine and BootstrapConfig and then start a discussion in the issue if the current state is as intended or what we want to change and when. |
Created the issue here: #5240 /close |
@sbueringer: 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 steps did you take and what happened:
[A clear and concise description on how to REPRODUCE the bug.]
Reproduced in CAPD but assumed to be an issue in the ClusterClass controller:
from template1 to template 2
What did you expect to happen:
Machine reconciliation should not occur unless the underlying objects - in this case DockerMachineTemplates - are actually different. Name-only changes shouldn't trigger rolling out of new MachineDeployments.
Environment:
/kind bug
The text was updated successfully, but these errors were encountered: