Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51588 from karataliu/accm
Automatic merge from submit-queue Fix splitProviderID for Azure **What this PR does / why we need it**: #46940 add 'splitProviderID' for Azure to get node name from provider, but it captures the resource id instead of node name. Functions such as NodeAddresses are accepting node names: https://github.com/kubernetes/kubernetes/blob/84d9778f225cdf8046774d56d47b1e264e47499f/pkg/cloudprovider/providers/azure/azure_instances.go#L32 With current implementation, it takes in a resource ID, and will result in following error ``` E0830 04:15:09.877143 10427 azure_instances.go:63] error: az.NodeAddresses, az.getIPForMachine(/subscriptions/{id}/resourceGroups/{id}/providers/Microsoft.Compute/virtualMachines/k8s-master-0), err=instance not found ``` This fix makes is return node names instead. **Which issue this PR fixes** **Special notes for your reviewer**: **Release note**: `NONE` @brendandburns @realfake @wlan0
- Loading branch information