mirror of https://github.com/kubernetes/kops.git
parent
b213de6c25
commit
b52c945f9f
|
|
@ -228,6 +228,8 @@ resource "aws_elb" "api-complex-example-com" {
|
||||||
tags = {
|
tags = {
|
||||||
KubernetesCluster = "complex.example.com"
|
KubernetesCluster = "complex.example.com"
|
||||||
Name = "api.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}
|
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)
|
awsCloud, err := awsup.NewAWSCloud(region, cloudTags)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue