code: func (ssc *StatefulSetController) addPod(obj interface{}) {
  	pod := obj.(*v1.Pod)
  
  	if pod.DeletionTimestamp != nil {
  		// on a restart of the controller manager, it's possible a new pod shows up in a state that
  		// is already pending deletion. Prevent the pod from being a creation observation.
  		ssc.deletePod(pod)
  		return
  	}
  
  	// If it has a ControllerRef, that's all that matters.
  	if controllerRef := metav1.GetControllerOf(pod); controllerRef != nil {
  		set := ssc.resolveControllerRef(pod.Namespace, controllerRef)
  		if set == nil {
  			return
  		}
  		klog.V(4).Infof("Pod %s created, labels: %+v", pod.Name, pod.Labels)
  		ssc.enqueueStatefulSet(set)
  		return
  	}
  
  	// Otherwise, it's an orphan. Get a list of all matching controllers and sync
  	// them to see if anyone wants to adopt it.
  	sets := ssc.getStatefulSetsForPod(pod)
  	if len(sets) == 0 {
  		return
  	}
  	klog.V(4).Infof("Orphan Pod %s created, labels: %+v", pod.Name, pod.Labels)
  	for _, set := range sets {
  		ssc.enqueueStatefulSet(set)
  	}
  }
docs: // addPod adds the statefulset for the pod to the sync queue