1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/test/scenarios/validate/check_registries.yaml
shivkumar dudhani 530ac6962c initial clean up
2019-10-14 12:36:19 -07:00

22 lines
502 B
YAML

apiVersion : kyverno.io/v1alpha1
kind: ClusterPolicy
metadata:
name: check-registries
spec:
rules:
- name: check-registries
match:
resources:
kinds:
- Deployment
- StatefulSet
validate:
message: "Registry is not allowed"
pattern:
spec:
template:
spec:
containers:
- name: "*"
# Check allowed registries
image: "*/nirmata/* | https://private.registry.io/*"