Skip to content

Commit e22b422

Browse files
committed
Exclude base image validation in kube-system
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
1 parent 5e5370c commit e22b422

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cluster/config-defaults.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ kubelet_image_gc_low_threshold: 40
609609
{{if eq .Cluster.Environment "production"}}
610610
teapot_admission_controller_validate_application_label: "true"
611611
teapot_admission_controller_validate_base_images: "true"
612+
teapot_admission_controller_validate_base_images_namespaces: "^kube-system$"
612613

613614
# Check container image compliance in production clusters. Be careful when thinking about changing this: Setting it to
614615
# false will allow any container image to run in production clusters.
@@ -629,7 +630,8 @@ teapot_admission_controller_namespace_delete_protection_enabled: "true"
629630
teapot_admission_controller_postgresql_owning_application_check_enabled: "true"
630631
{{else if eq .Cluster.Environment "e2e"}}
631632
teapot_admission_controller_validate_application_label: "false"
632-
teapot_admission_controller_validate_base_images: "false"
633+
teapot_admission_controller_validate_base_images: "true"
634+
teapot_admission_controller_validate_base_images_namespaces: "^kube-system|((downward-api|kubectl|projected|statefulset|pod-network|scope-selectors|resourcequota|limitrange|sysctl|node-tests|e2e-kubelet-etc-hosts|csiinlinevolumes|job|dns)-.*)$"
633635

634636
# Check container image compliance in e2e clusters. There are some exceptions to allow the e2e test suite to run.
635637
teapot_admission_controller_validate_pod_images: "true"

0 commit comments

Comments
 (0)