code: func checkServiceFormat(s *corev1.Service, ports []corev1.ServicePort, serviceType corev1.ServiceType) (formatCorrect bool) {
  	if s.Spec.Type != serviceType {
  		return false
  	}
  	if len(ports) != len(s.Spec.Ports) {
  		return false
  	}
  	for i, port := range ports {
  		if port != s.Spec.Ports[i] {
  			return false
  		}
  	}
  	return true
  }
docs: // Determine if the service is in the correct format
  // GetMasterServiceUpdateIfNeeded expects (servicePorts are correct
  // and service type matches).