Skip to content

Commit

Permalink
Revert "Merge pull request #2305 from leelavg/5072-onboard"
Browse files Browse the repository at this point in the history
This reverts commit 19293d0, reversing
changes made to df7a769.

ref: #2305 (comment)
Signed-off-by: Leela Venkaiah G <[email protected]>
  • Loading branch information
leelavg committed Dec 11, 2023
1 parent 19293d0 commit 3d54ae3
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 191 deletions.
7 changes: 3 additions & 4 deletions services/provider/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ func (cc *OCSProviderClient) Close() {

// OnboardConsumer to validate the consumer and create StorageConsumer
// resource on the StorageProvider cluster
func (cc *OCSProviderClient) OnboardConsumer(ctx context.Context, ticket, name, operatorVersion string) (*pb.OnboardConsumerResponse, error) {
func (cc *OCSProviderClient) OnboardConsumer(ctx context.Context, ticket, name string) (*pb.OnboardConsumerResponse, error) {
if cc.Client == nil || cc.clientConn == nil {
return nil, fmt.Errorf("provider client is closed")
}

req := &pb.OnboardConsumerRequest{
OnboardingTicket: ticket,
ConsumerName: name,
ClientOperatorVersion: operatorVersion,
OnboardingTicket: ticket,
ConsumerName: name,
}

apiCtx, cancel := context.WithTimeout(ctx, cc.timeout)
Expand Down
Loading

0 comments on commit 3d54ae3

Please sign in to comment.