Skip to content

Commit 95536ac

Browse files
authored
Merge pull request #51550 from my-git9/npa-13752
[zh-cn]sync validating-admission-policy.md
2 parents ebcfab6 + e4814c2 commit 95536ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/zh-cn/docs/reference/access-authn-authz/validating-admission-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ not been bound, so for policies requiring a parameter resource, it can be useful
331331
ensure one has been bound. A parameter resource will not be bound and `params` will be null
332332
if `paramKind` of the policy, or `paramRef` of the binding are not specified.
333333

334-
For the use cases require parameter configuration, we recommend to add a param check in
334+
For the use cases requiring parameter configuration, we recommend to add a param check in
335335
`spec.validations[0].expression`:
336336
-->
337337
如果参数资源尚未被绑定,代表参数资源的 params 对象将不会被设置,
@@ -341,7 +341,7 @@ For the use cases require parameter configuration, we recommend to add a param c
341341

342342
对于需要参数配置的场景,我们建议在 `spec.validations[0].expression` 中添加一个参数检查:
343343

344-
```
344+
```yaml
345345
- expression: "params != null"
346346
message: "params missing but required to bind to this policy"
347347
```

0 commit comments

Comments
 (0)