1
0
Fork 0
salty-dog/rules/kubernetes-fix.yml

24 lines
483 B
YAML
Raw Normal View History

name: kubernetes-fix
rules:
- name: kubernetes-container-pull-policy
desc: all containers should have a pull policy
level: info
tags:
- kubernetes
- image
- optional
select: '$..containers.*'
check:
type: object
required: [image, imagePullPolicy]
properties:
imagePullPolicy:
type: string
default: IfNotPresent
enum:
- Always
- IfNotPresent
- Never