File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ func (r *AWSMachine) ValidateUpdate(old runtime.Object) error {
78
78
var allErrs field.ErrorList
79
79
80
80
allErrs = append (allErrs , r .validateCloudInitSecret ()... )
81
+ allErrs = append (allErrs , r .validateAdditionalSecurityGroups ()... )
81
82
allErrs = append (allErrs , r .Spec .AdditionalTags .Validate ()... )
82
83
83
84
newAWSMachineSpec := newAWSMachine ["spec" ].(map [string ]interface {})
@@ -203,7 +204,7 @@ func (r *AWSMachine) validateNonRootVolumes() field.ErrorList {
203
204
var allErrs field.ErrorList
204
205
205
206
for _ , volume := range r .Spec .NonRootVolumes {
206
- if VolumeTypesProvisioned .Has (string (r . Spec . RootVolume .Type )) && volume .IOPS == 0 {
207
+ if VolumeTypesProvisioned .Has (string (volume .Type )) && volume .IOPS == 0 {
207
208
allErrs = append (allErrs , field .Required (field .NewPath ("spec.nonRootVolumes.iops" ), "iops required if type is 'io1' or 'io2'" ))
208
209
}
209
210
You can’t perform that action at this time.
0 commit comments