fix the change of hostDir to hostPath
This commit is contained in:
@@ -397,9 +397,9 @@ func validateSource(source *api.VolumeSource) errs.ValidationErrorList {
|
|||||||
return allErrs
|
return allErrs
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateHostPathVolumeSource(hostDir *api.HostPathVolumeSource) errs.ValidationErrorList {
|
func validateHostPathVolumeSource(hostPath *api.HostPathVolumeSource) errs.ValidationErrorList {
|
||||||
allErrs := errs.ValidationErrorList{}
|
allErrs := errs.ValidationErrorList{}
|
||||||
if hostDir.Path == "" {
|
if hostPath.Path == "" {
|
||||||
allErrs = append(allErrs, errs.NewFieldRequired("path"))
|
allErrs = append(allErrs, errs.NewFieldRequired("path"))
|
||||||
}
|
}
|
||||||
return allErrs
|
return allErrs
|
||||||
|
Reference in New Issue
Block a user