Skip to content

Commit 99ddc99

Browse files
fiunchinhoAndiDog
andauthored
Update exp/api/v1beta2/awsmachinepool_webhook.go
Co-authored-by: Andreas Sommer <[email protected]>
1 parent 7d68f6f commit 99ddc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exp/api/v1beta2/awsmachinepool_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (r *AWSMachinePool) validateAdditionalSecurityGroups() field.ErrorList {
111111
func (r *AWSMachinePool) validateSpotInstances() field.ErrorList {
112112
var allErrs field.ErrorList
113113
if r.Spec.AWSLaunchTemplate.SpotMarketOptions != nil && r.Spec.MixedInstancesPolicy != nil {
114-
allErrs = append(allErrs, field.Forbidden(field.NewPath("spec.awsLaunchTemplate.AdditionalSecurityGroups"), "either spec.awsLaunchTemplate.SpotMarketOptions or spec.MixedInstancesPolicy should be used"))
114+
allErrs = append(allErrs, field.Forbidden(field.NewPath("spec.awsLaunchTemplate.spotMarketOptions"), "either spec.awsLaunchTemplate.spotMarketOptions or spec.mixedInstancesPolicy should be used"))
115115
}
116116
return allErrs
117117
}

0 commit comments

Comments
 (0)