k3s/pkg/cloudprovider/providers/aws
Kubernetes Submit Queue cf5d4011ac
Merge pull request #55731 from georgebuckerfield/elb-tagging
Automatic merge from submit-queue (batch tested with PRs 50457, 55558, 53483, 55731, 52842). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Ensure new tags are created on existing ELBs

**What this PR does / why we need it**:

When editing an existing service of type LoadBalancer in an AWS environment and adding the `service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags` annotation, you would expect the new tags to be set on the load balancer, however this doesn't happen currently. The annotation only takes effect if specified when the service is created.

This PR adds an AddTags method to the ELB interface and uses this to ensure tags set in the annotation are present on the ELB. If the tag key is already present, the value will be updated.

This PR does not remove tags that have been removed from the annotation, it only add/updates tags.

**Which issue(s) this PR fixes**:
Fixes #54642 

**Special notes for your reviewer**:
The change requires that the IAM policy of the master instance(s) has the `elasticloadbalancing:AddTags` permission.

**Release note**:

```release-note
Ensure additional resource tags are set/updated AWS load balancers
```
2017-11-18 11:36:22 -08:00
..
BUILD Apply taint when a volume is stuck in attaching state on node 2017-11-13 12:30:52 -05:00
OWNERS Add approvers to the aws OWNERS file 2017-02-20 11:44:05 -05:00
aws.go Merge pull request #55731 from georgebuckerfield/elb-tagging 2017-11-18 11:36:22 -08:00
aws_fakes.go Merge pull request #55731 from georgebuckerfield/elb-tagging 2017-11-18 11:36:22 -08:00
aws_instancegroups.go Use %q formatter for error messages from the AWS SDK. #47789 2017-06-23 10:02:21 -04:00
aws_loadbalancer.go Merge pull request #55731 from georgebuckerfield/elb-tagging 2017-11-18 11:36:22 -08:00
aws_loadbalancer_test.go AWS: Perform ELB listener comparison in case-insensitive manner 2017-06-13 02:22:38 -04:00
aws_metrics.go Start recording cloud provider metrics for AWS 2017-04-27 15:26:32 -04:00
aws_routes.go Replace the deprecated function with the suggest function 2017-08-21 10:50:52 +08:00
aws_test.go Modify the AWS cloud provider to ensure additional load balancer tags are added to existing load balancers 2017-11-14 21:47:50 +00:00
aws_utils.go Replace the deprecated function with the suggest function 2017-08-21 10:50:52 +08:00
device_allocator.go Implement LRU for AWS device allocator 2017-04-19 16:52:57 -04:00
device_allocator_test.go Implement LRU for AWS device allocator 2017-04-19 16:52:57 -04:00
instances.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
instances_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
log_handler.go Added logging to AWS api calls. #46969 2017-07-14 21:37:05 -04:00
regions.go AWS: trust region if found from AWS metadata 2017-01-18 09:17:55 -05:00
regions_test.go Moved fakes to a separate file usable by other tests 2017-09-22 13:30:05 -04:00
retry_handler.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
retry_handler_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sets_ippermissions.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
tags.go Make ClusterID required for AWS. #48954 2017-08-07 15:47:00 -04:00
tags_test.go Moved fakes to a separate file usable by other tests 2017-09-22 13:30:05 -04:00
volumes.go Create strong typed awsInstanceID 2017-06-13 01:19:19 -04:00