mirror of https://github.com/kubernetes/kops.git
azure: Remove `-netconfig` suffix for VMSS network configuration
This commit is contained in:
parent
553509bd46
commit
a025a56287
|
|
@ -91,7 +91,7 @@ func (a azureVerifier) VerifyToken(ctx context.Context, rawRequest *http.Request
|
|||
}
|
||||
nodeName := strings.ToLower(*vm.Properties.OSProfile.ComputerName)
|
||||
|
||||
ni, err := a.client.nisClient.GetVirtualMachineScaleSetNetworkInterface(ctx, a.client.resourceGroup, vmssName, vmssIndex, vmssName+"-netconfig", nil)
|
||||
ni, err := a.client.nisClient.GetVirtualMachineScaleSetNetworkInterface(ctx, a.client.resourceGroup, vmssName, vmssIndex, vmssName, nil)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("getting info for VMSS network interface %q #%s: %w", vmssName, vmssIndex, err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ func (s *VMScaleSet) RenderAzure(t *azure.AzureAPITarget, a, e, changes *VMScale
|
|||
}
|
||||
|
||||
networkConfig := &compute.VirtualMachineScaleSetNetworkConfiguration{
|
||||
Name: to.Ptr(name + "-netconfig"),
|
||||
Name: to.Ptr(name),
|
||||
Properties: &compute.VirtualMachineScaleSetNetworkConfigurationProperties{
|
||||
Primary: to.Ptr(true),
|
||||
EnableIPForwarding: to.Ptr(true),
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ func TestVMScaleSetFind(t *testing.T) {
|
|||
},
|
||||
}
|
||||
networkConfig := &compute.VirtualMachineScaleSetNetworkConfiguration{
|
||||
Name: to.Ptr("vmss-netconfig"),
|
||||
Name: to.Ptr("vmss"),
|
||||
Properties: &compute.VirtualMachineScaleSetNetworkConfigurationProperties{
|
||||
Primary: to.Ptr(true),
|
||||
EnableIPForwarding: to.Ptr(true),
|
||||
|
|
|
|||
Loading…
Reference in New Issue