Skip to content

Commit

Permalink
fix: pass lbcf context to client-go
Browse files Browse the repository at this point in the history
  • Loading branch information
choujimmy committed May 11, 2020
1 parent 7df648f commit aa7020f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/platform/registry/cluster/storage/lbcf_backendgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (r *LBCFBackendGroupREST) Connect(ctx context.Context, clusterName string,
if err != nil {
return nil, err
}
credential, err := util.GetClusterCredential(r.platformClient, cluster)
credential, err := util.GetClusterCredential(ctx, r.platformClient, cluster)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/platform/registry/cluster/storage/lbcf_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (r *LBCFLoadBalancerREST) Connect(ctx context.Context, clusterName string,
if err != nil {
return nil, err
}
credential, err := util.GetClusterCredential(r.platformClient, cluster)
credential, err := util.GetClusterCredential(ctx, r.platformClient, cluster)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit aa7020f

Please sign in to comment.