• Brice Figureau's avatar
    Fix #73479 AWS NLB target groups missing tags · bbee2da7
    Brice Figureau authored
    `elbv2.AddTags` doesn't seem to support assigning the same set of
    tags to multiple resources at once leading to the following error:
      Error adding tags after modifying load balancer targets:
      "ValidationError: Only one resource can be tagged at a time"
    
    This can happen when using AWS NLB with multiple listeners pointing
    to different node ports.
    
    When k8s creates a NLB it creates a target group per listener along
    with installing security group ingress rules allowing the traffic to
    reach the k8s nodes.
    
    Unfortunately if those target groups are not tagged, k8s will not
    manage them, thinking it is not the owner.
    
    This small changes assigns tags one resource at a time instead of
    batching them as before.
    Signed-off-by: 's avatarBrice Figureau <brice@daysofwonder.com>
    bbee2da7
Name
Last commit
Last update
..
api Loading commit data...
apis Loading commit data...
auth Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
credentialprovider Loading commit data...
features Loading commit data...
fieldpath Loading commit data...
generated Loading commit data...
kubeapiserver Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
master Loading commit data...
printers Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
scheduler Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch/json Loading commit data...
windows/service Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...