mirror of https://github.com/kubernetes/kops.git
commit
5b891e73fd
|
|
@ -92,8 +92,8 @@ func (b *ServerGroupModelBuilder) buildInstances(c *fi.ModelBuilderContext, sg *
|
||||||
return fmt.Errorf("Failed to create UUID for instance: %v", err)
|
return fmt.Errorf("Failed to create UUID for instance: %v", err)
|
||||||
}
|
}
|
||||||
// FIXME: Must ensure 63 or less characters
|
// FIXME: Must ensure 63 or less characters
|
||||||
// replace all dots with -, this is needed to get external cloudprovider working
|
// replace all dots and _ with -, this is needed to get external cloudprovider working
|
||||||
iName := strings.ToLower(fmt.Sprintf("%s-%d.%s", ig.Name, i+1, b.ClusterName()))
|
iName := strings.Replace(strings.ToLower(fmt.Sprintf("%s-%d.%s", ig.Name, i+1, b.ClusterName())), "_", "-", -1)
|
||||||
instanceName := fi.String(strings.Replace(iName, ".", "-", -1))
|
instanceName := fi.String(strings.Replace(iName, ".", "-", -1))
|
||||||
|
|
||||||
var az *string
|
var az *string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue