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 ba4386d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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
6 changes: 3 additions & 3 deletions pkg/clustermanager/retrier_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ 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),
retrier: retrier,
clusterManagerClient: newClient(client),
retrier: retrier,
}
}

Expand Down

0 comments on commit ba4386d

Please sign in to comment.