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

Redis Operator: Label Propagation Issue with HarborCluster StatefulSets #706

Open
anushkaa2607 opened this issue Nov 25, 2024 · 0 comments

Comments

@anushkaa2607
Copy link

Description

The Redis Operator currently propagates all labels from HarborCluster to both the template labels and selectors of the managed StatefulSets. This behavior conflicts with the immutability of StatefulSet selectors, leading to update failures.

What would you like to be added

  • A mechanism within the Redis Operator to prevent label propagation from resources to StatefulSet selectors.

  • The ability to add labels without affecting the labels and selectors of the StatefulSet.

Why is this needed

  • StatefulSet Immutability: Kubernetes enforces the immutability of StatefulSet selectors, i.e. they can’t be updated

  • Update Failures: Attempting to update a StatefulSet with extra selector labels results in errors, hindering management operations.

  • Flexibility: Decoupling template labels and selectors provides greater flexibility in managing StatefulSets. It will allow us to get clear distinction between labels used for resource identification and those applied for organizational purposes.

References

Kubernetes Issue: kubernetes/kubernetes#90519 (Discusses the immutability of StatefulSet selectors)

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

No branches or pull requests

1 participant