Skip to content

Commit

Permalink
Merge pull request #2305 from leelavg/5072-onboard
Browse files Browse the repository at this point in the history
Onboard clients only if they are on same version as provider
  • Loading branch information
openshift-merge-bot[bot] authored Dec 6, 2023
2 parents df7a769 + 33bc29a commit 19293d0
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 158 deletions.
7 changes: 4 additions & 3 deletions services/provider/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ 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 string) (*pb.OnboardConsumerResponse, error) {
func (cc *OCSProviderClient) OnboardConsumer(ctx context.Context, ticket, name, operatorVersion 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,
OnboardingTicket: ticket,
ConsumerName: name,
ClientOperatorVersion: operatorVersion,
}

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

0 comments on commit 19293d0

Please sign in to comment.