Skip to content

fix(controller): ignore immutable field modifications for statefulset#519

Open
Abhra303 wants to merge 1 commit intomainfrom
ac/controller
Open

fix(controller): ignore immutable field modifications for statefulset#519
Abhra303 wants to merge 1 commit intomainfrom
ac/controller

Conversation

@Abhra303
Copy link
Copy Markdown
Contributor

Statefulset has some fields that are immutable e.g. volumeClaims. Any attempt to update these fields would fail causing the controller to be stuck in update state. Ignore these fields when update to the desired state. The controller will throw warnings if user tries to update immutable fields.

Note, this PR doesn't create a new statefulset to update the immutable fields. I think it would best to leave it for users to create a new Dragonfly resource with updated pvcs etc. i.e. making it behave identically with statefulset. Allowing updating these fields would need sts deletion, handling orphan pods etc. Manual handling of such cases makes more sense to me than by the dragonfly operator.

… update

Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
@Abhra303 Abhra303 linked an issue Apr 11, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@miledxz miledxz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nice

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.

bug: resize pvc sts template is not possible

2 participants