Skip to content

Commit

Permalink
fix typo (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: ldpliu <daliu@redhat.com>
  • Loading branch information
ldpliu committed Mar 22, 2022
1 parent 210d9c9 commit 9546e6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/helloworld/agent/helloworldagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -136,7 +136,7 @@ func newAgentController(
clusterName: clusterName,
addonName: addonName,
addonNamespace: addonNamespace,
hunConfigMapLister: configmapInformers.Lister(),
hubConfigMapLister: configmapInformers.Lister(),
recorder: recorder,
}
return factory.New().WithInformersQueueKeyFunc(
Expand All @@ -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
Expand Down

0 comments on commit 9546e6c

Please sign in to comment.