Skip to content

Commit

Permalink
Merge pull request #2340 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2314-to-release-4.15

Bug 2255320:[release-4.15] Revert "Merge pull request #2305 from leelavg/5072-onboard"
  • Loading branch information
openshift-merge-bot[bot] authored Dec 20, 2023
2 parents bd9ed8f + ace9f63 commit 808c4bd
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 808c4bd

Please sign in to comment.