Skip to content

Commit

Permalink
Fix typo in clusterManagerClient name
Browse files Browse the repository at this point in the history
  • Loading branch information
g-gaston committed Mar 24, 2023
1 parent 1c7c660 commit e253e34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pkg/clustermanager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pkg/clustermanager/retrier_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit e253e34

Please sign in to comment.