Skip to content

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Apr 9, 2021

fixes #1447

with v1.6.2 we moved the rolling update flag from statefulset to pods. Thus, after bumping the operator version during the next sync there will be a difference between the current and generated statefulset. If this is the only difference the statefulset is patched. But in K8s one cannot remove things with Patch. It requires an Update to do so. To avoid extending the cluster rbac, we can choose to replace the statefulset if annotations are different.

In fact, our code does not even patch the statefulset if annotations for the new statefulset are empty.

The annotation update in Sync.go can go. There would be no difference at this point. I would even argue that line has been obsolete before. Actually we could also remove updateStatefulSetAnnotations function if we choose to replace the statefulset.

@FxKu FxKu added this to the 1.6.3 milestone Apr 9, 2021
@Jan-M
Copy link
Member

Jan-M commented Apr 22, 2021

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Apr 22, 2021

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resync every 30 min with statefulset ... is not in the desired state and needs to be updated

2 participants