1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 18:38:40 +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
resource:
kinds:
- Pod
- Deployment
mutate:
overlay:
spec:
containers:
# match images which end with :latest
- (image): "*:latest"
# set the imagePullPolicy to "Always"
imagePullPolicy: "Always"
template:
spec:
containers:
# match images which end with :latest
- (image): "*:latest"
# set the imagePullPolicy to "Always"
imagePullPolicy: "Always"
````
### 3. Generating resources