mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
update cli example
This commit is contained in:
parent
2eadf0af6d
commit
e54c021353
2 changed files with 4 additions and 5 deletions
|
@ -27,12 +27,12 @@ spec :
|
|||
matchLabels :
|
||||
cli: test
|
||||
validate:
|
||||
message: "The imagePullPolicy must be Always when :latest is used as a tag"
|
||||
message: "The imagePullPolicy must be Always when using image nginx"
|
||||
pattern:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- (name): "*:latest"
|
||||
- (image): "nginx*"
|
||||
imagePullPolicy: Always
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
kind: "Deployment"
|
||||
apiVersion: "extensions/v1beta1"
|
||||
apiVersion: "apps/v1"
|
||||
metadata:
|
||||
name: "ghost"
|
||||
labels:
|
||||
|
@ -28,8 +28,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: "ghost"
|
||||
image: "ghost:2.9.1-alpine"
|
||||
imagePullPolicy: Always
|
||||
image: "nginx:latest"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: "TCP"
|
||||
|
|
Loading…
Reference in a new issue