You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-api-machinery/2876-crd-validation-expression-language/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,8 +235,8 @@ will be surfaced when the validation rule evaluates to false.
235
235
extension in the schema. In the above example, the validator is scoped to the
236
236
`spec`field. `self` will be used to represent the name of the field which the validator
237
237
is scoped to.
238
-
- Consideration under adding `self`: There would be composition problem while generating CRD with tools like `controller-gen`.
239
-
When trying to add validation as a maker comment to a field, the validation rule will
238
+
- Consideration under adding the representative of scoped filed name: There would be composition problem while generating CRD with tools like `controller-gen`.
239
+
When trying to add validation as a marker comment to a field, the validation rule will
240
240
be hard to define without the actual field name. As the example showing below. When we want to put cel validation on ToySpec, the field name as `spec` has not
241
241
been identified yet which makes rule hard to define.
0 commit comments