Commit 6026857
committed
fix(platform): drop redundant failurePolicy on no-delete VAP
Address review feedback from @lllamnyp on packages/core/platform/templates/
deletion-protection.yaml: the VAP's validation expression is the literal
`false` — no parameters, no variables, no references — so CEL evaluation
cannot fail and the api-server never has occasion to apply failurePolicy.
The previous `failurePolicy: Fail` line was a no-op masquerading as
operational config.
Drop the field (the default is Fail anyway in admissionregistration.k8s.io/v1)
and document in the template comment why it is intentionally absent, so the
next reader does not re-add it on the assumption that it was forgotten.
Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>1 parent 572e08a commit 6026857
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | | - | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
0 commit comments