You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
When updating from release-0.2.0 to release-0.4.2, the template hash label in the pods and statefulsets changes, despite the LWS object not changing. This triggers a rolling update, even though it shouldn't.
What you expected to happen:
Update to happen without triggering rolling updates
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
The template hash is generated using the string version of the two pod templates. When new fields are added to other Kubernetes objects that can be part of the pod template spec, that will change the underlying string, even the new fields are not set.
You can see this when comparing the podTemplateSpec used to generate the template hash in version 0.2 versus the one used on version 0.4.2
What happened:
When updating from
release-0.2.0
torelease-0.4.2
, the template hash label in the pods and statefulsets changes, despite the LWS object not changing. This triggers a rolling update, even though it shouldn't.What you expected to happen:
Update to happen without triggering rolling updates
How to reproduce it (as minimally and precisely as possible):
volumeMount
Anything else we need to know?:
The template hash is generated using the string version of the two pod templates. When new fields are added to other Kubernetes objects that can be part of the pod template spec, that will change the underlying string, even the new fields are not set.
You can see this when comparing the podTemplateSpec used to generate the template hash in version 0.2 versus the one used on version 0.4.2
Version to 0.2
Version 0.4.2
The latter contains the field
Image: nil
, which was added inv0.31.0
of k8s.io/apimachinery https://pkg.go.dev/k8s.io/api/core/v1#ImageVolumeSource. 0.2 uses versionv0.29.3
, while 0.4.2 uses versionv.0.31.0
Environment:
kubectl version
):git describe --tags --dirty --always
):cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: