This repository was archived by the owner on Oct 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
kubernetes/kyverno/require-department-label Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kind: Pod
33metadata :
44 name : require-department-label-fail0
55 labels :
6- mycompany.com/policy-version : " 2 .0.1 "
6+ mycompany.com/policy-version : " 1 .0.0 "
77spec :
88 containers :
99 - name : nginx
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
44 name : require-department-label-pass0
55 labels :
66 mycompany.com/department : finance
7- mycompany.com/policy-version : " 2 .0.1 "
7+ mycompany.com/policy-version : " 1 .0.0 "
88spec :
99 containers :
1010 - name : nginx
Original file line number Diff line number Diff line change 3939 - " *"
4040 selector :
4141 matchLabels :
42- mycompany.com/policy-version : " 2 .0.1 "
42+ mycompany.com/policy-version : " 1 .0.0 "
4343 validate :
4444 message : " The label `mycompany.com/department` is required."
4545 pattern :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
44 name : require-department-label-skip0
55 labels :
66 mycompany.com/require-department-label : exempt
7- mycompany.com/policy-version : " 2 .0.1 "
7+ mycompany.com/policy-version : " 1 .0.0 "
88spec :
99 containers :
1010 - name : nginx
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
44 name : require-department-label-skip1
55 namespace : kube-system
66 labels :
7- mycompany.com/policy-version : " 2 .0.1 "
7+ mycompany.com/policy-version : " 1 .0.0 "
88spec :
99 containers :
1010 - name : nginx
You can’t perform that action at this time.
0 commit comments