Skip to content

Commit

Permalink
Merge pull request #5593 from wingyplus/elb_cloud_labels
Browse files Browse the repository at this point in the history
Apply cloud labels into ELB
  • Loading branch information
k8s-ci-robot authored Aug 18, 2018
2 parents 0502410 + b52c945 commit c61fb53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/update_cluster/complex/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ resource "aws_elb" "api-complex-example-com" {
tags = {
KubernetesCluster = "complex.example.com"
Name = "api.complex.example.com"
Owner = "John Doe"
"foo/bar" = "fib+baz"
}
}

Expand Down
3 changes: 3 additions & 0 deletions upup/pkg/fi/cloudup/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ func BuildCloud(cluster *kops.Cluster) (fi.Cloud, error) {
}

cloudTags := map[string]string{awsup.TagClusterName: cluster.ObjectMeta.Name}
for k, v := range cluster.Spec.CloudLabels {
cloudTags[k] = v
}

awsCloud, err := awsup.NewAWSCloud(region, cloudTags)
if err != nil {
Expand Down

0 comments on commit c61fb53

Please sign in to comment.