Skip to content

Commit

Permalink
fix(installer): client is nil in preparation (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoryu authored Dec 1, 2021
1 parent c03474e commit 91bf13e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/platform/provider/cluster/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,6 @@ func (p *DelegateProvider) getCurrentCondition(c *v1.Cluster, phase platformv1.C

// GetRestConfigV1 returns the cluster's rest config
func (p *DelegateProvider) GetRestConfig(ctx context.Context, cluster *platformv1.Cluster, username string) (*rest.Config, error) {
if p.PlatformClient == nil {
return nil, fmt.Errorf("provider platform client is nil")
}
cc, err := credential.GetClusterCredentialV1(ctx, p.PlatformClient, cluster, username)
if err != nil {
return nil, err
Expand Down

0 comments on commit 91bf13e

Please sign in to comment.