Skip to content

Commit

Permalink
Fix: ignore not a VMSS error for VMAS nodes in reconcileBackendPools
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Mar 11, 2021
1 parent 499cb4b commit 73c9148
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/provider/azure_vmss.go
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,11 @@ func (ss *ScaleSet) GetNodeNameByIPConfigurationID(ipConfigurationID string) (st
matches := vmssIPConfigurationRE.FindStringSubmatch(ipConfigurationID)
if len(matches) != 4 {
klog.V(4).Infof("Can not extract scale set name from ipConfigurationID (%s), assuming it is managed by availability set", ipConfigurationID)
return "", "", ErrorNotVmssInstance
name, rg, err := ss.availabilitySet.GetNodeNameByIPConfigurationID(ipConfigurationID)
if err != nil {
return "", "", ErrorNotVmssInstance
}
return name, rg, nil
}

resourceGroup := matches[1]
Expand Down

0 comments on commit 73c9148

Please sign in to comment.