You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (r.Spec.Template.Spec.NetworkInterfaces!=nil) &&len(r.Spec.Template.Spec.NetworkInterfaces) >0&&r.Spec.Template.Spec.SubnetName!="" {
76
-
allErrs=append(allErrs, field.Invalid(field.NewPath("AzureMachineTemplate", "spec", "template", "spec", "networkInterfaces"), r.Spec.Template.Spec.NetworkInterfaces, "cannot set both NetworkInterfaces and machine SubnetName"))
78
+
if (t.Spec.Template.Spec.NetworkInterfaces!=nil) &&len(t.Spec.Template.Spec.NetworkInterfaces) >0&&t.Spec.Template.Spec.SubnetName!="" {
79
+
allErrs=append(allErrs, field.Invalid(field.NewPath("AzureMachineTemplate", "spec", "template", "spec", "networkInterfaces"), t.Spec.Template.Spec.NetworkInterfaces, "cannot set both NetworkInterfaces and machine SubnetName"))
77
80
}
78
81
79
-
if (r.Spec.Template.Spec.NetworkInterfaces!=nil) &&len(r.Spec.Template.Spec.NetworkInterfaces) >0&&r.Spec.Template.Spec.AcceleratedNetworking!=nil {
80
-
allErrs=append(allErrs, field.Invalid(field.NewPath("AzureMachineTemplate", "spec", "template", "spec", "acceleratedNetworking"), r.Spec.Template.Spec.NetworkInterfaces, "cannot set both NetworkInterfaces and machine AcceleratedNetworking"))
82
+
if (t.Spec.Template.Spec.NetworkInterfaces!=nil) &&len(t.Spec.Template.Spec.NetworkInterfaces) >0&&t.Spec.Template.Spec.AcceleratedNetworking!=nil {
83
+
allErrs=append(allErrs, field.Invalid(field.NewPath("AzureMachineTemplate", "spec", "template", "spec", "acceleratedNetworking"), t.Spec.Template.Spec.NetworkInterfaces, "cannot set both NetworkInterfaces and machine AcceleratedNetworking"))
allErrs=append(allErrs, field.Invalid(field.NewPath("AzureMachineTemplate", "spec", "template", "spec", "networkInterfaces", "privateIPConfigs"), r.Spec.Template.Spec.NetworkInterfaces[i].PrivateIPConfigs, "networkInterface privateIPConfigs must be set to a minimum value of 1"))
88
+
allErrs=append(allErrs, field.Invalid(field.NewPath("AzureMachineTemplate", "spec", "template", "spec", "networkInterfaces", "privateIPConfigs"), t.Spec.Template.Spec.NetworkInterfaces[i].PrivateIPConfigs, "networkInterface privateIPConfigs must be set to a minimum value of 1"))
allErrs=append(allErrs, field.Forbidden(field.NewPath("AzureMachineTemplate", "spec", "template", "spec", "vmExtensions"), "VMExtensions must be empty when DisableExtensionOperations is true"))
0 commit comments