File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
keps/sig-api-machinery/3488-cel-admission-control Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ spec:
407
407
validations :
408
408
- name : max-replicas
409
409
expression : " object.spec.replicas <= params.maxReplicas"
410
- messageExpression : " 'object.spec.replicas must be no greater than {} '.format([params.maxReplicas])"
410
+ messageExpression : " 'object.spec.replicas must be no greater than %d '.format([params.maxReplicas])"
411
411
reason : Invalid
412
412
# ...other rule related fields here...
413
413
```
@@ -2894,7 +2894,7 @@ spec.x[xKey].y[yIndex].field
2894
2894
validations:
2895
2895
- scope: "x[xKey].y[yIndex].field"
2896
2896
expression: "scope.startsWith('xyz-')"
2897
- messageExpression: "'{}, {} : some problem'.format([scopePath.xKey, scopePath.yIndex])"
2897
+ messageExpression: "'%s, %d : some problem'.format([scopePath.xKey, scopePath.yIndex])"
2898
2898
` ` `
2899
2899
2900
2900
Prior art :
You can’t perform that action at this time.
0 commit comments