Merge pull request #16469 from hakman/azure-verifier-lowercase

azure: Use lowercase for node names
This commit is contained in:
Kubernetes Prow Robot 2024-04-18 04:32:06 -07:00 committed by GitHub
commit f92efdf016
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func (a azureVerifier) VerifyToken(ctx context.Context, rawRequest *http.Request
if vm.Properties.OSProfile == nil || vm.Properties.OSProfile.ComputerName == nil || *vm.Properties.OSProfile.ComputerName == "" {
return nil, fmt.Errorf("determining ComputerName for VMSS %q virtual machine #%s", vmssName, vmssIndex)
}
nodeName := *vm.Properties.OSProfile.ComputerName
nodeName := strings.ToLower(*vm.Properties.OSProfile.ComputerName)
ni, err := a.client.nisClient.GetVirtualMachineScaleSetNetworkInterface(ctx, a.client.resourceGroup, vmssName, vmssIndex, vmssName+"-netconfig", nil)
if err != nil {