mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Merge pull request #14025 from zhengguoyong/fix-var-hostdir
fix the change of hostDir to hostPath
This commit is contained in:
commit
0789627b6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user