-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage of --aws-vpc-tags with --aws-vpc-tag-key is unclear #3889
Comments
@jeswinkoshyninan Mey-be you can help to shed more light here? |
@pinkavaj okay sure @alfredkrohmer sorry for the late reply, I was away for my vacation. make sense, I will create a PR to update this behaviour based on your suggestion. But just to give the context here, this feature doesn't make any change in behaviour of fetching VPC ID from metadata-service as it was before. But added as an optional feature to fetch VPC-ID explicitly from a given AWS tag with value as name of the VPC and by default the tag-key will be 'Name' itself and which is defined here. So in this case you don't want to pass values for --aws-vpc-tags and --aws-vpc-tag-key altogether. But the users should have a way for override the default tag to a custom and in that case they might can use --aws-vpc-tag-key to override. But in most case this is not required. Hope this helps ? |
That's clear.
This still explain why you need two parameters for this. It looks like |
@alfredkrohmer Agreed already, it makes sense. I will create a PR to remove this. |
This was introduced by @jeswinkoshyninan in #3656
It's not clear to my why
--aws-vpc-tags
allows to pass a map with an arbitrary number of items if we only ever pass a single key-value pair (the one with the key specified in--aws-vpc-tag-key
) as the tag filter for finding a VPC.aws-load-balancer-controller/pkg/aws/cloud.go
Lines 141 to 143 in 8a01478
aws-load-balancer-controller/pkg/aws/cloud.go
Lines 184 to 192 in 8a01478
Shouldn't it rather just convert the map from
--aws-vpc-tags
into a list of tag filters, one for each item? This would remove the need for--aws-vpc-tag-key
altogether.Ref: #3656 (comment)
The text was updated successfully, but these errors were encountered: