24 lines
483 B
YAML
24 lines
483 B
YAML
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
|
|
|