code: func ValidateDaemonSet(ds *apps.DaemonSet) field.ErrorList {
  	allErrs := apivalidation.ValidateObjectMeta(&ds.ObjectMeta, true, ValidateDaemonSetName, field.NewPath("metadata"))
  	allErrs = append(allErrs, ValidateDaemonSetSpec(&ds.Spec, field.NewPath("spec"))...)
  	return allErrs
  }
docs: // ValidateDaemonSet tests if required fields in the DaemonSet are set.