This repository was archived by the owner on Jun 6, 2024. It is now read-only.
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ policies:
3
3
- name : CEL_policy
4
4
isDefault : true
5
5
rules :
6
- - identifier : CUSTOM_DEPLOYMENT_BILLING_LABEL_EXISTS
6
+ - identifier : CUSTOM_WORKLOADS_BILLING_LABEL_EXISTS
7
7
messageOnFailure : " workloads labels should contain billing label"
8
8
- identifier : CUSTOM_SECRET_ENVIRONMENT_LABEL_EXISTS
9
9
messageOnFailure : " secret labels should contain environment label"
@@ -24,9 +24,9 @@ customRules:
24
24
- Pod
25
25
then :
26
26
CELDefinition :
27
- - expression : " object.kind != 'Deployment' || ( has(object.metadata.labels) && has(object.metadata.labels.billing) )"
27
+ - expression : " has(object.metadata.labels) && has(object.metadata.labels.billing)"
28
28
message : " deployment labels should contain billing label"
29
- - expression : " object.kind != 'Pod' || ( has(object.metadata.labels) && has(object.metadata.labels.billing) )"
29
+ - expression : " has(object.metadata.labels) && has(object.metadata.labels.billing)"
30
30
message : " pod labels should contain billing label"
31
31
- identifier : CUSTOM_SECRET_ENVIRONMENT_LABEL_EXISTS
32
32
name : Ensure Secret has environment label [CUSTOM RULE]
You can’t perform that action at this time.
0 commit comments