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 合并指标
 (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

贡献者指南