-
Notifications
You must be signed in to change notification settings - Fork 101
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
KUDO 0.10.0 does not perform rolling update if ConfigMap changes #1302
Comments
Related to #1303 |
oh, good catch! :) so maybe we removed kustomize prematurely after all? We should really test this functionality... |
Well, removing kustomize is fine, I think, we just need to apply the metadata recursivly, the same as kustomize did. |
@ANeumann82 I wonder if we're not reimplementing kustomize then... depends on how complex looking for those places recursively is. I guess it's still better than kustomize as dep :) |
@alenkacz I've created a PR that applies the metadata recursively, it's not too much code. |
What happened:
When updating an operator with a specific param that updates only a ConfigMap, the StatefulSet that references this ConfigMap does not get restarted.
What you expected to happen:
The StatefulSet referencing the updated ConfigMap should perform a rollingUpdate
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
From what I figured out, this is an issue from removing Kustomize to render templates and enhance them with metadata (labels and annotations):
Before the update, Kustomize would add annotations and labels to the rendered statefulset, including the statefulset.spec.template.metadata. As this is a change to the spec in the StatefulSet, it would trigger a restart of the STS.
With the new code, we only set the metadata on the statefulSet itself, not on the template for the Pods, and therefore we don't trigger the restart anymore.
Environment:
kubectl kudo version
): 0.10.0The text was updated successfully, but these errors were encountered: