mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-15 12:17:56 +00:00
19 lines
No EOL
468 B
YAML
19 lines
No EOL
468 B
YAML
apiVersion : kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: imagepullpolicy-always
|
|
spec:
|
|
validationFailureAction: audit
|
|
background: false
|
|
rules:
|
|
- name: imagepullpolicy-always
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "The imagePullPolicy must be set to `Always` for all containers when a tag other than `latest` is used."
|
|
pattern:
|
|
spec:
|
|
containers:
|
|
- imagePullPolicy: Always |