From 08a2b3a8075fe14c02e5c04197a6f4cccb59d075 Mon Sep 17 00:00:00 2001 From: Danijel Simeunovic Date: Wed, 18 Feb 2026 10:44:13 +0100 Subject: [PATCH] enforce pod label --- cluster-resources/policies/label-checker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-resources/policies/label-checker.yaml b/cluster-resources/policies/label-checker.yaml index 129007a..3e91e7f 100644 --- a/cluster-resources/policies/label-checker.yaml +++ b/cluster-resources/policies/label-checker.yaml @@ -10,7 +10,7 @@ metadata: policies.kyverno.io/subject: Pod, Label policies.kyverno.io/description: Define and use labels that identify semantic attributes of your application or Deployment. A common set of labels allows tools to work collaboratively, describing objects in a common manner that all tools can understand. The recommended labels describe applications in a way that can be queried. This policy validates that the label `app.kubernetes.io/name` is specified with some value. spec: - validationFailureAction: Audit + validationFailureAction: Enforce background: true rules: - name: check-for-labels