kubernetes-sigs / aws-load-balancer-controller

A Kubernetes controller for Elastic Load Balancers
https://kubernetes-sigs.github.io/aws-load-balancer-controller/
Apache License 2.0
3.89k stars 1.45k forks source link

Set prefix list through IngressClassParams #3859

Open gdlx opened 6 days ago

gdlx commented 6 days ago

Is your feature request related to a problem? I'm providing an ingress class to my users to deploy ALBs dedicated to inbound traffic from an external CDN whose outbound IPs are listed in a prefix list, but I currently need to ask them to add the alb.ingress.kubernetes.io/security-group-prefix-lists annotation on every CDN ingress.

Describe the solution you'd like I'd like to be able to set the prefix list in the IngressClassParams resource to avoid having to set it on every ingress using this ingress class.

Describe alternatives you've considered My current workaround is to patch every ingress using this ingress class with Kyverno to add the alb.ingress.kubernetes.io/security-group-prefix-lists annotation.

shraddhabang commented 4 days ago

Thank you for the contribution. We will review this soon.