mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 10:04:25 +00:00
clean
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
This commit is contained in:
parent
889f5ae27a
commit
1a5d4dc5b4
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
apiVersion : kyverno.io/v1
|
||||
kind: ClusterPolicy
|
||||
metadata:
|
||||
name: latestimage-notalways
|
||||
spec:
|
||||
validationFailureAction: audit
|
||||
background: false
|
||||
rules:
|
||||
- name: latestimage-notalways
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
- Pod
|
||||
validate:
|
||||
message: "When using the `latest` tag, the `imagePullPolicy` must not use `Always`."
|
||||
pattern:
|
||||
spec:
|
||||
containers:
|
||||
- (image): "*:latest"
|
||||
imagePullPolicy: "!Always"
|
Loading…
Add table
Reference in a new issue