Skip to content

Commit

Permalink
Revert "Onboard clients only if they are on same version as provider"
Browse files Browse the repository at this point in the history
This reverts commit 33bc29a.

ref: #2305 (comment)

Signed-off-by: Leela Venkaiah G <[email protected]>
  • Loading branch information
leelavg authored and openshift-cherrypick-robot committed Dec 20, 2023
1 parent bd9ed8f commit ace9f63
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 ace9f63

Please sign in to comment.