code: func LogAndEmitIncorrectIPVersionEvent(recorder record.EventRecorder, fieldName, fieldValue, svcNamespace, svcName string, svcUID types.UID) {
  	errMsg := fmt.Sprintf("%s in %s has incorrect IP version", fieldValue, fieldName)
  	klog.Errorf("%s (service %s/%s).", errMsg, svcNamespace, svcName)
  	if recorder != nil {
  		recorder.Eventf(
  			&v1.ObjectReference{
  				Kind:      "Service",
  				Name:      svcName,
  				Namespace: svcNamespace,
  				UID:       svcUID,
  			}, v1.EventTypeWarning, "KubeProxyIncorrectIPVersion", errMsg)
  	}
  }
docs: // LogAndEmitIncorrectIPVersionEvent logs and emits incorrect IP version event.