-
Hi, I wonder if there is any other way to implement this? Is it possible to implement it with schema ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @hjiajing, If the data is immutable ( users cannot change that by updating the specs on the CR) Why it should be a spec of the CRD in the first place? It seems like that should be a config fixed on the controller/reconciliation. |
Beta Was this translation helpful? Give feedback.
-
@camilamacedo86 I think the immutable means the field can not be changed once the CR created.
@hjiajing No, it seems now CRD does not support immutable fields. You can only validate the update in your webhook. But I think it's worth to have it in CRD. You can create an issue in k/k repo and see how ppl from sig-api-machinery think about it. |
Beta Was this translation helpful? Give feedback.
-
Closing since it is answered. |
Beta Was this translation helpful? Give feedback.
@camilamacedo86 I think the immutable means the field can not be changed once the CR created.
@hjiajing No, it seems now CRD does not support immutable fields. You can only validate the update in your webhook.
But I think it's worth to have it in CRD. You can create an issue in k/k repo and see how ppl from sig-api-machinery think about it.