diff --git a/pkg/clustermanager/client.go b/pkg/clustermanager/client.go index 7e86f2cc05984..e7dd570323847 100644 --- a/pkg/clustermanager/client.go +++ b/pkg/clustermanager/client.go @@ -20,15 +20,15 @@ type KubernetesClient interface { RemoveAnnotationInNamespace(ctx context.Context, resourceType, objectName, key string, cluster *types.Cluster, namespace string) error } -type clusterManageClient struct { +type clusterManagerClient struct { ClusterClient } -func newClient(clusterClient ClusterClient) *clusterManageClient { - return &clusterManageClient{ClusterClient: clusterClient} +func newClient(clusterClient ClusterClient) *clusterManagerClient { + return &clusterManagerClient{ClusterClient: clusterClient} } -func (c *clusterManageClient) waitForDeployments(ctx context.Context, deploymentsByNamespace map[string][]string, cluster *types.Cluster, timeout string) error { +func (c *clusterManagerClient) waitForDeployments(ctx context.Context, deploymentsByNamespace map[string][]string, cluster *types.Cluster, timeout string) error { for namespace, deployments := range deploymentsByNamespace { for _, deployment := range deployments { err := c.WaitForDeployment(ctx, cluster, timeout, "Available", deployment, namespace) diff --git a/pkg/clustermanager/retrier_client.go b/pkg/clustermanager/retrier_client.go index 5f18a4b1fc2fd..1221b383bd99e 100644 --- a/pkg/clustermanager/retrier_client.go +++ b/pkg/clustermanager/retrier_client.go @@ -12,14 +12,14 @@ import ( // RetrierClient wraps around a ClusterClient, offering retry functionality for some operations. type RetrierClient struct { - *clusterManageClient + *clusterManagerClient retrier *retrier.Retrier } // NewRetrierClient constructs a new RetrierClient. func NewRetrierClient(client ClusterClient, retrier *retrier.Retrier) *RetrierClient { return &RetrierClient{ - clusterManageClient: newClient(client), + clusterManagerClient: newClient(client), retrier: retrier, } }