code: func NewReplicaSetController(rsInformer appsinformers.ReplicaSetInformer, podInformer coreinformers.PodInformer, kubeClient clientset.Interface, burstReplicas int) *ReplicaSetController {
  	eventBroadcaster := record.NewBroadcaster()
  	eventBroadcaster.StartLogging(klog.Infof)
  	eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: kubeClient.CoreV1().Events("")})
  	return NewBaseController(rsInformer, podInformer, kubeClient, burstReplicas,
  		apps.SchemeGroupVersion.WithKind("ReplicaSet"),
  		"replicaset_controller",
  		"replicaset",
  		controller.RealPodControl{
  			KubeClient: kubeClient,
  			Recorder:   eventBroadcaster.NewRecorder(scheme.Scheme, v1.EventSource{Component: "replicaset-controller"}),
  		},
  	)
  }
docs: // NewReplicaSetController configures a replica set controller with the specified event recorder