Merge pull request #14025 from zhengguoyong/fix-var-hostdir

fix the change of hostDir to hostPath
pull/6/head
Alex Mohr 2015-09-16 21:47:53 -07:00
commit 0789627b6c
1 changed files with 2 additions and 2 deletions

View File

@ -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