code: func getPodRevision(pod *v1.Pod) string {
  	if pod.Labels == nil {
  		return ""
  	}
  	return pod.Labels[apps.StatefulSetRevisionLabel]
  }
docs: // getPodRevision gets the revision of Pod by inspecting the StatefulSetRevisionLabel. If pod has no revision the empty
  // string is returned.