Skip to content

fix: allow custom labels to override defaults#480

Merged
Abhra303 merged 1 commit intodragonflydb:mainfrom
anzzyspeaksgit:fix/issue-446-labels
Mar 19, 2026
Merged

fix: allow custom labels to override defaults#480
Abhra303 merged 1 commit intodragonflydb:mainfrom
anzzyspeaksgit:fix/issue-446-labels

Conversation

@anzzyspeaksgit
Copy link
Copy Markdown
Contributor

Closes #446

Description

This PR addresses issue #446 where the app.kubernetes.io/name and app.kubernetes.io/part-of labels on the StatefulSet and Pods were hardcoded and could not be overridden by spec.labels or spec.ownedObjectsMetadata.labels.

I removed the _, ok checks in both generateResourceLabels and GenerateDragonflyResources loop to allow user-provided labels to successfully overwrite any hardcoded defaults.

@Abhra303 Abhra303 merged commit 627b6d3 into dragonflydb:main Mar 19, 2026
2 checks passed
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.

StatefulSet / Pod labels are not correct

2 participants