code: func ValidateObjectMeta(meta *metav1.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList {
  	allErrs := apimachineryvalidation.ValidateObjectMeta(meta, requiresNamespace, apimachineryvalidation.ValidateNameFunc(nameFn), fldPath)
  	// run additional checks for the finalizer name
  	for i := range meta.Finalizers {
  		allErrs = append(allErrs, validateKubeFinalizerName(string(meta.Finalizers[i]), fldPath.Child("finalizers").Index(i))...)
  	}
  	return allErrs
  }
docs: // ValidateObjectMeta validates an object's metadata on creation. It expects that name generation has already
  // been performed.
  // It doesn't return an error for rootscoped resources with namespace, because namespace should already be cleared before.
  // TODO: Remove calls to this method scattered in validations of specific resources, e.g., ValidatePodUpdate.