// NewPodSyncer returns the syncer for pod
NewPodSyncer returns the syncer for pod
// NewPodSyncer returns the syncer for pod
func NewPodSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster, host string) syncer.Interface {
	pod := &core.Pod{
		ObjectMeta: metav1.ObjectMeta{
			Name:      getPodNameForHost(host),
			Namespace: cluster.Namespace,
		},
	}
	sync := &podSyncer{
		cluster:  cluster,
		hostname: host,
		log:      logf.Log.WithName("pod-syncer").WithValues("key", cluster.GetNamespacedName()),
	}
	return syncer.NewObjectSyncer("Pod", nil, pod, c, func() error {
		return sync.SyncFn(pod)
	})
}
func NewPodSyncer ( c client . Client , scheme * runtime . Scheme , cluster * mysqlcluster . MysqlCluster , host string ) syncer . Interface { pod := & core . Pod { ObjectMeta : metav1 . ObjectMeta { Name : getPodNameForHost ( host ) , Namespace : cluster . Namespace , } , } sync := & podSyncer { cluster : cluster , hostname : host , log : logf . Log . WithName ( " " ) . WithValues ( " " , cluster . GetNamespacedName ( ) ) , } return syncer . NewObjectSyncer ( " " , nil , pod , c , func ( ) error { return sync . SyncFn ( pod ) } ) }
NewPodSyncer returns the syncer for pod
NewPodSyncer returns the syncer for pod