1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

update mutate overlay example in readme

This commit is contained in:
shuting 2019-05-22 19:09:21 -07:00 committed by GitHub
parent 0fac5f7dae
commit d185bbaa58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,15 +66,17 @@ spec:
- name: set-image-pull-policy - name: set-image-pull-policy
resource: resource:
kinds: kinds:
- Pod - Deployment
mutate: mutate:
overlay: overlay:
spec: spec:
containers: template:
# match images which end with :latest spec:
- (image): "*:latest" containers:
# set the imagePullPolicy to "Always" # match images which end with :latest
imagePullPolicy: "Always" - (image): "*:latest"
# set the imagePullPolicy to "Always"
imagePullPolicy: "Always"
```` ````
### 3. Generating resources ### 3. Generating resources