code: func validateImagePullSecrets(imagePullSecrets []api.LocalObjectReference, fldPath *field.Path) field.ErrorList {
  	allErrors := field.ErrorList{}
  	for i, currPullSecret := range imagePullSecrets {
  		idxPath := fldPath.Index(i)
  		strippedRef := api.LocalObjectReference{Name: currPullSecret.Name}
  		if !reflect.DeepEqual(strippedRef, currPullSecret) {
  			allErrors = append(allErrors, field.Invalid(idxPath, currPullSecret, "only name may be set"))
  		}
  	}
  	return allErrors
  }
docs: // validateImagePullSecrets checks to make sure the pull secrets are well
  // formed.  Right now, we only expect name to be set (it's the only field).  If
  // this ever changes and someone decides to set those fields, we'd like to
  // know.