Do we have any options to have a label with a fixed value in all CRs created using a particular CRD and have it immutable.
This can be useful while using ‘objectSelectors’ in the validating or mutating webhook configuration to match all objects having that particular label.
I presume it is now too late for an answer; providing it in case someone is looking for this and reaching this discussion:
- Solution is to be based on CEL support in CRDs, see https://kubernetes.io/blog/2022/09/29/enforce-immutability-using-cel/#immutablility-after-first-modification