mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
20 lines
477 B
YAML
20 lines
477 B
YAML
|
apiVersion: kyverno.io/v1alpha1
|
||
|
kind: Policy
|
||
|
metadata:
|
||
|
name: set-image-pull-policy
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: set-image-pull-policy
|
||
|
resource:
|
||
|
kinds:
|
||
|
- Deployment
|
||
|
mutate:
|
||
|
overlay:
|
||
|
spec:
|
||
|
template:
|
||
|
spec:
|
||
|
containers:
|
||
|
# match images which end with :latest
|
||
|
- (image): "*:latest"
|
||
|
# set the imagePullPolicy to "Always"
|
||
|
imagePullPolicy: "Always"
|