mirror of https://github.com/kubernetes/kops.git
Fix int to string conversions
This commit is contained in:
parent
d0a2baefec
commit
5a9cc3d216
|
@ -136,7 +136,7 @@ func makeGroup(groups map[string]*cloudinstances.CloudInstanceGroup, k8sClient k
|
||||||
|
|
||||||
var instanceIds []*string
|
var instanceIds []*string
|
||||||
for i := 0; i < count; i++ {
|
for i := 0; i < count; i++ {
|
||||||
id := name + string('a'+i)
|
id := name + string(rune('a'+i))
|
||||||
var node *v1.Node
|
var node *v1.Node
|
||||||
if role != kopsapi.InstanceGroupRoleBastion {
|
if role != kopsapi.InstanceGroupRoleBastion {
|
||||||
node = &v1.Node{
|
node = &v1.Node{
|
||||||
|
|
|
@ -58,7 +58,7 @@ func (m *AWSMachineTypeInfo) EphemeralDevices() []*EphemeralDevice {
|
||||||
// TODO: What drive letters do we use?
|
// TODO: What drive letters do we use?
|
||||||
klog.Fatalf("ephemeral devices for > 20 not yet implemented")
|
klog.Fatalf("ephemeral devices for > 20 not yet implemented")
|
||||||
}
|
}
|
||||||
d.DeviceName = "/dev/sd" + string('c'+i)
|
d.DeviceName = fmt.Sprintf("/dev/sd%c", 'c'+i)
|
||||||
d.VirtualName = fmt.Sprintf("ephemeral%d", i)
|
d.VirtualName = fmt.Sprintf("ephemeral%d", i)
|
||||||
|
|
||||||
disks = append(disks, d)
|
disks = append(disks, d)
|
||||||
|
|
Loading…
Reference in New Issue