Skip to content
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

Allow modification of StatefulSet PodTemplateSpec.ObjectMeta.Labels #649

Merged
merged 2 commits into from
May 6, 2024

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented May 3, 2024

What this PR does:
Previously the PodTemplateSpec.ObjectMeta.Labels were copied from the original StatefulSet as Kubernetes did not allow modifying them. We no longer have such restriction, so allow the modification (even if StatefulSet controller will do a rolling restart of the pods which it didn't need to).

Which issue(s) this PR fixes:
Fixes #575

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@burmanm burmanm requested a review from a team as a code owner May 3, 2024 07:55
Copy link
Contributor

@adejanovski adejanovski left a comment

Choose a reason for hiding this comment

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

works as expected ✅

@burmanm burmanm merged commit 689a692 into k8ssandra:master May 6, 2024
37 of 38 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.

Setting custom labels via PodTemplate.metadata.labels doesn't work
2 participants