You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[ "${message1}"=="Deployment: CEL check expression returned: Object has reloader annotation" ]]
39
+
[[ "${message2}"=="ServiceAccount: CEL check expression returned: Invalid EKS IAM role ARN format" ]]
40
+
[[ "${message3}"=="ServiceMonitor: CEL check expression returned: no services found matching the service monitor's label selector and namespace selector" ]]
41
+
[[ "${message4}"=="ServiceMonitor: CEL check expression returned: no services found matching the service monitor's label selector and namespace selector" ]]
42
+
[[ "${message5}"=="ServiceMonitor: CEL check expression returned: no services found matching the service monitor's label selector and namespace selector" ]]
43
+
[[ "${message6}"=="ServiceMonitor: CEL check expression returned: no services found matching the service monitor's label selector and namespace selector" ]]
description: "IRSA annotations must have a valid IAM Role ARN value"
17
+
remediation: "Validate the format of the annotation's value to ensure it is a valid IAM Role ARN"
18
+
scope:
19
+
objectKinds:
20
+
- ServiceAccount
21
+
template: "cel-expression"
22
+
params:
23
+
check: |
24
+
object.metadata.annotations["eks.amazonaws.com/role-arn"].matches("^arn:aws:iam::\\d{12}:role/[\\w+=,.@-]{1,64}$") ? "" : "Invalid EKS IAM role ARN format"
25
+
26
+
- name: "cel-dangling-servicemonitor"
27
+
description: "Flag service monitors which do not match any service"
28
+
remediation: "Ensure the ServiceMonitor's selector matches at least one Service"
// Params defines the configuration parameters for this template.
4
+
typeParamsstruct {
5
+
// Check contains a CEL expression for validation logic. Two predefined variables are available: 'object' (the current Kubernetes object being processed) and 'objects' (all objects being linted).
0 commit comments