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
`deamon-require-aws-node-irsa` is a KCL validation package to validate services of type LoadBalancer when deployed inside AWS have support for transport encryption if it is enabled via an annotation. This policy requires that Services of type LoadBalancer contain the annotation `service.beta.kubernetes.io/aws-load-balancer-ssl-cert` with some value.
4
+
5
+
## Resource
6
+
7
+
The Code source and documents are [here](https://github.com/kcl-lang/artifacthub/tree/main/deamon-require-aws-node-irsa)
"""Services of type LoadBalancer when deployed inside AWS have support for
2
+
transport encryption if it is enabled via an annotation. This policy requires
3
+
that Services of type LoadBalancer contain the annotation
4
+
service.beta.kubernetes.io/aws-load-balancer-ssl-cert with some value.
5
+
"""
6
+
7
+
# Define the validation function
8
+
validate = lambda item {
9
+
if item.kind == "Service":
10
+
assert item.metadata?.annotation?["service.beta.kubernetes.io/aws-load-balancer-ssl-cert"] if item?.spec?.type == "LoadBalancer", "Service of type LoadBalancer must carry the annotation service.beta.kubernetes.io/aws-load-balancer-ssl-cert."
0 commit comments