Commit 05609cbf authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #19220 from thockin/validation-field-caps

Auto commit by PR queue bot
parents ab58e723 708fda26
...@@ -486,7 +486,7 @@ func validateVolumeSource(source *api.VolumeSource, fldPath *field.Path) field.E ...@@ -486,7 +486,7 @@ func validateVolumeSource(source *api.VolumeSource, fldPath *field.Path) field.E
} }
if source.FlexVolume != nil { if source.FlexVolume != nil {
numVolumes++ numVolumes++
allErrs = append(allErrs, validateFlexVolumeSource(source.FlexVolume, fldPath.Child("FlexVolume"))...) allErrs = append(allErrs, validateFlexVolumeSource(source.FlexVolume, fldPath.Child("flexVolume"))...)
} }
if numVolumes == 0 { if numVolumes == 0 {
allErrs = append(allErrs, field.Required(fldPath, "must specify a volume type")) allErrs = append(allErrs, field.Required(fldPath, "must specify a volume type"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment