enforce pod label

This commit is contained in:
Danijel Simeunovic
2026-02-18 10:44:13 +01:00
parent cb0766ffdd
commit 08a2b3a807

View File

@@ -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