mirror of https://github.com/kubernetes/kops.git
Merge pull request #5593 from wingyplus/elb_cloud_labels
Apply cloud labels into ELB
This commit is contained in:
commit
c61fb537ac
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue