From 9546e6c174ff6cc1f5067ac43c2761d981775258 Mon Sep 17 00:00:00 2001 From: DangPeng Liu Date: Tue, 22 Mar 2022 18:18:27 +0800 Subject: [PATCH] fix typo (#88) Signed-off-by: ldpliu --- examples/helloworld/agent/helloworldagent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/helloworld/agent/helloworldagent.go b/examples/helloworld/agent/helloworldagent.go index 0711cf4a3..649a91d31 100644 --- a/examples/helloworld/agent/helloworldagent.go +++ b/examples/helloworld/agent/helloworldagent.go @@ -114,7 +114,7 @@ func (o *AgentOptions) RunAgent(ctx context.Context, controllerContext *controll type agentController struct { spokeKubeClient kubernetes.Interface addonClient addonv1alpha1client.Interface - hunConfigMapLister corev1lister.ConfigMapLister + hubConfigMapLister corev1lister.ConfigMapLister clusterName string addonName string addonNamespace string @@ -136,7 +136,7 @@ func newAgentController( clusterName: clusterName, addonName: addonName, addonNamespace: addonNamespace, - hunConfigMapLister: configmapInformers.Lister(), + hubConfigMapLister: configmapInformers.Lister(), recorder: recorder, } return factory.New().WithInformersQueueKeyFunc( @@ -157,7 +157,7 @@ func (c *agentController) sync(ctx context.Context, syncCtx factory.SyncContext) return nil } - cm, err := c.hunConfigMapLister.ConfigMaps(clusterName).Get(name) + cm, err := c.hubConfigMapLister.ConfigMaps(clusterName).Get(name) switch { case errors.IsNotFound(err): return nil