cockroach-operator
cockroach-operator copied to clipboard
reject mutations to additionalLabels field
K8s does not support mutating selectors and labels on statefulsets at the same time: https://github.com/kubernetes/kubernetes/issues/90519.
This PR adds a validation hook to reject mutating additionalLabels, which will cause mutating selectors and labels on the underlying sts, and a constant reconciliation loop.
Add a description of the problem this PR addresses and an overview of how this PR works.
Checklist
- [x] I have added these changes to the changelog (or it's not applicable).