1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/examples/mutate/overlay/policy_set_imagePullPolicy.yaml
2019-05-23 20:37:11 +03:00

19 lines
433 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:
# set the imagePullPolicy to "Always"
- (imagePullPolicy): "IfNotPresent"
imagePullPolicy: "Always"