-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert imagepullpolicy-always to cel
Signed-off-by: Chandan-DK <[email protected]>
- Loading branch information
1 parent
18235cd
commit 4675c4d
Showing
3 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
name: imagepullpolicy-always | ||
name: imagepullpolicy-always-cel | ||
version: 1.0.0 | ||
displayName: Require imagePullPolicy Always | ||
createdAt: "2023-04-10T20:30:04.000Z" | ||
displayName: Require imagePullPolicy Always in CEL expressions | ||
description: >- | ||
If the `latest` tag is allowed for images, it is a good idea to have the imagePullPolicy field set to `Always` to ensure should that tag be overwritten that future pulls will get the updated image. This policy validates the imagePullPolicy is set to `Always` when the `latest` tag is specified explicitly or where a tag is not defined at all. | ||
install: |- | ||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/kyverno/policies/main/other/imagepullpolicy-always/imagepullpolicy-always.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/kyverno/policies/main/other-cel/imagepullpolicy-always/imagepullpolicy-always.yaml | ||
``` | ||
keywords: | ||
- kyverno | ||
- Sample | ||
- CEL Expressions | ||
readme: | | ||
If the `latest` tag is allowed for images, it is a good idea to have the imagePullPolicy field set to `Always` to ensure should that tag be overwritten that future pulls will get the updated image. This policy validates the imagePullPolicy is set to `Always` when the `latest` tag is specified explicitly or where a tag is not defined at all. | ||
Refer to the documentation for more details on Kyverno annotations: https://artifacthub.io/docs/topics/annotations/kyverno/ | ||
annotations: | ||
kyverno/category: "Sample" | ||
kyverno/category: "Sample in CEL" | ||
kyverno/kubernetesVersion: "1.26-1.27" | ||
kyverno/subject: "Pod" | ||
digest: 6c540bf67eeab51987b0021acffd73333d5eff22f14e10204b8c2c543222758d | ||
digest: b832c5d39491ce78d88a33596b2706b5448616d034b5b438b9974d07b58d875e | ||
createdAt: "2024-04-03T17:41:38Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters