Skip to content

Commit

Permalink
feat(federated-informer-manager): fix typos and lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
limhawjia committed Jul 24, 2023
1 parent 9671454 commit 26f222d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/util/informermanager/federatedinformermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (m *federatedInformerManager) processCluster(

clusterDynamicClient, err := m.dynamicClientGetter(cluster, clusterRestConfig)
if err != nil {
return fmt.Errorf("failed to get dynmaic client for cluster %s: %w", clusterName, err), true, 0
return fmt.Errorf("failed to get dynamic client for cluster %s: %w", clusterName, err), true, 0
}

clusterKubeClient, err := m.kubeClientGetter(cluster, clusterRestConfig)
Expand Down Expand Up @@ -411,7 +411,7 @@ func (m *federatedInformerManager) Start(ctx context.Context) {
return
}

// Populate the intial snapshot of clusters
// Populate the initial snapshot of clusters

clusters := m.clusterInformer.Informer().GetStore().List()
for _, cluster := range clusters {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/informermanager/federatedinformermanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/kubernetes/fake"
dynamicclient "k8s.io/client-go/dynamic"
dynamicfake "k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/cache"
"k8s.io/klog/v2"
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/informermanager/informermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func (m *informerManager) Start(ctx context.Context) {
return
}

// Populate the intial snapshot of FTCs
// Populate the initial snapshot of FTCs

ftcs := m.ftcInformer.Informer().GetStore().List()
for _, ftc := range ftcs {
Expand Down
1 change: 0 additions & 1 deletion pkg/util/informermanager/podinformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,3 @@ func prunePod(pod *corev1.Pod) {
},
}
}

0 comments on commit 26f222d

Please sign in to comment.