cockroach-operator icon indicating copy to clipboard operation
cockroach-operator copied to clipboard

reject mutations to additionalLabels field

Open meridional opened this issue 3 years ago • 0 comments

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).

meridional avatar Jun 16 '22 17:06 meridional