Skip to content

Commit 075d38c

Browse files
committed
polish.
1 parent 7a5b077 commit 075d38c

File tree

1 file changed

+2
-2
lines changed
  • content/en/blog/_posts/2024-04-01-validating-admission-policy-ga

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ Looks great! The policy and the webhook give equivalent results.
175175
After a few other cases, when we are confident with our policy, maybe it is time to do some cleanup.
176176

177177
- For every expression, we repeat access to `object.spec.template.spec.containers` and each `securityContext` in every expression;
178-
- There is a pattern of checking presence of a field and then access it, which looks a bit verbose.
178+
- There is a pattern of checking presence of a field and then accessing it, which looks a bit verbose.
179179

180180
Fortunately, with the release of Kubernetes 1.28, we have new solutions for both issues.
181181
Variable Composition allows us to extract repeated sub-expressions into their own variables.
182-
CEL library has also added support for [CEL optionals](https://github.com/google/cel-spec/wiki/proposal-246), which are excellent to work with fields that are, well, optional.
182+
CEL library has also added support for [optionals](https://github.com/google/cel-spec/wiki/proposal-246), which are excellent to work with fields that are, well, optional.
183183

184184
With both features in mind, let's refactor the policy a bit.
185185
```yaml

0 commit comments

Comments
 (0)