Skip to content

Commit f5f1be4

Browse files
committed
grammar cleanups.
1 parent 7e1da17 commit f5f1be4

File tree

1 file changed

+5
-4
lines changed
  • content/en/blog/_posts/2024-04-24-validating-admission-policy-ga

1 file changed

+5
-4
lines changed

content/en/blog/_posts/2024-04-24-validating-admission-policy-ga/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ On behalf of the Kubernetes project, I am excited to announce that ValidatingAdm
1212
as part of Kubernetes 1.30 release. If you have not yet read about this new declarative alternative to
1313
validating admission webhooks, it may be interesting to read our
1414
[previous post](/blog/2022/12/20/validating-admission-policies-alpha/) about the new feature.
15-
If you have already heard about Validating Admission Policy and you are eager to try it out, there is no better time to do it now.
15+
If you have already heard about ValidatingAdmissionPolicies and you are eager to try them out,
16+
there is no better time to do it than now.
1617

17-
Let's have a taste of Validating Admission Policy by replacing a simple webhook.
18+
Let's have a taste of a ValidatingAdmissionPolicy, by replacing a simple webhook.
1819

1920
## Example admission webhook
2021
First, let's take a look at an example of a simple webhook. Here is an excerpt from a webhook that
21-
enforce `runAsNonRoot`, `readOnlyRootFilesystem`, `allowPrivilegeEscalation`, and `privileged` to be set to the least permissive values.
22+
enforces `runAsNonRoot`, `readOnlyRootFilesystem`, `allowPrivilegeEscalation`, and `privileged` to be set to the least permissive values.
2223

2324
```go
2425
func verifyDeployment(deploy *appsv1.Deployment) error {
@@ -47,7 +48,7 @@ func verifyDeployment(deploy *appsv1.Deployment) error {
4748
}
4849
```
4950

50-
Check out [What are admission webhooks?](/docs/reference/access-authn-authz/extensible-admission-controllers/#what-are-admission-webhooks) Or, see the [full code](https://gist.github.com/jiahuif/2653f2ce41fe6a2e5739ea7cd76b182b) of this webhook to follow along this walkthrough.
51+
Check out [What are admission webhooks?](/docs/reference/access-authn-authz/extensible-admission-controllers/#what-are-admission-webhooks) Or, see the [full code](https://gist.github.com/jiahuif/2653f2ce41fe6a2e5739ea7cd76b182b) of this webhook to follow along with this walkthrough.
5152

5253
## The policy
5354
Now let's try to recreate the validation faithfully with a ValidatingAdmissionPolicy.

0 commit comments

Comments
 (0)