This commit is contained in:
Danijel Simeunovic
2026-03-03 20:05:42 +01:00
parent 86a7994bf8
commit 5d3f21170e

View File

@@ -10,7 +10,7 @@ metadata:
policies.kyverno.io/subject: Pod, Label 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. 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: spec:
validationFailureAction: Enforce validationFailureAction: Audit
background: true background: true
rules: rules:
- name: check-for-labels - name: check-for-labels