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 committed Dec 20, 2023
1 parent 42c58dc commit f57daeb
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 f57daeb

Please sign in to comment.