kubernetes-sigs/aws-load-balancer-controller

Allow specifying prefix lists by names

開放

#4,077 建立於 2025年3月5日

 (8 則留言) (1 個反應) (1 位負責人)Go (1,644 個分叉)auto 404
good first issue

倉庫指標

星標
 (4,317 顆星)
PR 合併指標
 (平均合併 14天 12小時) (30 天內合併 16 個 PR)

描述

Describe the feature you are requesting

Ability to specify prefix lists by names rather than IDs.

Motivation

aws-load-balancer-security-group-prefix-lists service annotation expects you to provide prefix list IDs. This is rather inconvenient and makes us do custom-script preprocessing to convert prefix list names into IDs first. It would be much simpler if we can specify prefix list names directly.

Describe the proposed solution you'd like

New service annotation (e.g. aws-load-balancer-security-group-prefix-list-names) that accepts comma-separated list of prefix lists. Controller does the logic of looking up the names and converting them to IDs internally. IAM permissions are updated accordingly, if needed.

Accepting names in already existing annotation is also an option, as it will match the behaviour of security group annotation:

Both name and ID of securityGroups are supported. Name matches a Name tag, not the groupName attribute.

Example

service.beta.kubernetes.io/aws-load-balancer-security-groups: sg-xxxx, nameOfSg1, nameOfSg2

Describe alternatives you've considered

N/A

Contribution Intention (Optional)

-[ ] Yes, I am willing to contribute a PR to implement this feature -[x] No, I cannot work on a PR at this time

貢獻者指南