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
StatefulSets with volumeClaimTemplates trigger constant updates #566
Comments
hmm metacontroller does not try to remove fields not managed by it. Maybe it is because |
It seems I have the same issue. Only difference between observed and desired state is log:
observed:
desired:
|
@vmax do you have an example of your CRD's and controller ? As it seems similar to I will try to setup example on my own but it can take some time |
@grzesuav sorry for the late reply! CRD:
Controller:
|
If a hook returns
StatefulSet
containingvolumeClaimTemplates
, Metacontroller is constantly trying to patch the object (despite the hook returning the same object).Relevant log:
Relevant object:
Relevant bit of observed state:
Relevant differences are
.spec.volumeClaimTemplates[].status
({"phase": "Pending"}
) and.spec.volumeClaimTemplates[].metadata.creationTimestamp
(null
)Looks like this happens because
status
andmetadata.creationTimestamp
are only cleared from the top-level object (StatefulSet
) but not child object (PersistentVolumeClaim
inside ofvolumeClaimTemplates
).The text was updated successfully, but these errors were encountered: