code: func ValidateEnv(vars []core.EnvVar, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  
  	for i, ev := range vars {
  		idxPath := fldPath.Index(i)
  		if len(ev.Name) == 0 {
  			allErrs = append(allErrs, field.Required(idxPath.Child("name"), ""))
  		} else {
  			for _, msg := range validation.IsEnvVarName(ev.Name) {
  				allErrs = append(allErrs, field.Invalid(idxPath.Child("name"), ev.Name, msg))
  			}
  		}
  		allErrs = append(allErrs, validateEnvVarValueFrom(ev, idxPath.Child("valueFrom"))...)
  	}
  	return allErrs
  }
docs: // ValidateEnv validates env vars