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:
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
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue