Fix int to string conversions

This commit is contained in:
Ciprian Hacman 2020-07-26 07:34:39 +03:00
parent d0a2baefec
commit 5a9cc3d216
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ func makeGroup(groups map[string]*cloudinstances.CloudInstanceGroup, k8sClient k
var instanceIds []*string
for i := 0; i < count; i++ {
id := name + string('a'+i)
id := name + string(rune('a'+i))
var node *v1.Node
if role != kopsapi.InstanceGroupRoleBastion {
node = &v1.Node{

View File

@ -58,7 +58,7 @@ func (m *AWSMachineTypeInfo) EphemeralDevices() []*EphemeralDevice {
// TODO: What drive letters do we use?
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)
disks = append(disks, d)