Fix CRD CEL transition rule error message example

Signed-off-by: Stefan Büringer buringerst@vmware.com
This commit is contained in:
Stefan Bueringer 2024-06-28 14:22:29 +02:00
parent 5ea6ba08e7
commit 3f7873e873
No known key found for this signature in database
GPG Key ID: 6575D5BC46948252
1 changed files with 1 additions and 2 deletions

View File

@ -1247,8 +1247,7 @@ Unlike other rules, transition rules apply only to operations meeting the follow
later update to the same object. later update to the same object.
Errors will be generated on CRD writes if a schema node contains a transition rule that can never be Errors will be generated on CRD writes if a schema node contains a transition rule that can never be
applied, e.g. "*path*: update rule *rule* cannot be set on schema because the schema or its parent applied, e.g. "oldSelf cannot be used on the uncorrelatable portion of the schema within *path*".
schema is not mergeable".
Transition rules are only allowed on _correlatable portions_ of a schema. Transition rules are only allowed on _correlatable portions_ of a schema.
A portion of the schema is correlatable if all `array` parent schemas are of type `x-kubernetes-list-type=map`; A portion of the schema is correlatable if all `array` parent schemas are of type `x-kubernetes-list-type=map`;