Convert nodeName to lower case for vmss instances

This is because Kubelet always converts hostname to lower case.
pull/6/head
Pengfei Ni 2018-01-15 14:23:47 +08:00
parent bc0e706a0a
commit ef93e0f426
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func (ss *scaleSet) updateCache() error {
for _, vm := range vms {
nodeName := ""
if vm.OsProfile != nil && vm.OsProfile.ComputerName != nil {
nodeName = *vm.OsProfile.ComputerName
nodeName = strings.ToLower(*vm.OsProfile.ComputerName)
}
vmSize := ""