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:
parent
0fac5f7dae
commit
d185bbaa58
1 changed files with 8 additions and 6 deletions
14
README.md
14
README.md
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue