Commit d312c308 authored by eulerzgy's avatar eulerzgy

fix the change of hostDir to hostPath

parent d007c914
......@@ -397,9 +397,9 @@ func validateSource(source *api.VolumeSource) errs.ValidationErrorList {
return allErrs
}
func validateHostPathVolumeSource(hostDir *api.HostPathVolumeSource) errs.ValidationErrorList {
func validateHostPathVolumeSource(hostPath *api.HostPathVolumeSource) errs.ValidationErrorList {
allErrs := errs.ValidationErrorList{}
if hostDir.Path == "" {
if hostPath.Path == "" {
allErrs = append(allErrs, errs.NewFieldRequired("path"))
}
return allErrs
......
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