This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new bba539c  chore(sbo): upgrade Servce Binding Operator to 1.0.0 GA
bba539c is described below

commit bba539cf7db43e86e2644732717dfec7d02e771a
Author: John Poth <poth.j...@gmail.com>
AuthorDate: Thu Nov 4 11:04:28 2021 +0100

    chore(sbo): upgrade Servce Binding Operator to 1.0.0 GA
---
 go.mod                       | 2 +-
 go.sum                       | 4 ++--
 pkg/trait/service_binding.go | 3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/go.mod b/go.mod
index f7cd794..7ecf1de 100644
--- a/go.mod
+++ b/go.mod
@@ -30,7 +30,7 @@ require (
        github.com/prometheus/client_model v0.2.0
        github.com/prometheus/common v0.30.0
        github.com/radovskyb/watcher v1.0.6
-       github.com/redhat-developer/service-binding-operator v0.9.1
+       github.com/redhat-developer/service-binding-operator v1.0.0
        github.com/rs/xid v1.2.1
        github.com/scylladb/go-set v1.0.2
        github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749
diff --git a/go.sum b/go.sum
index ea7c021..522bdca 100644
--- a/go.sum
+++ b/go.sum
@@ -884,8 +884,8 @@ github.com/prometheus/tsdb v0.7.1/go.mod 
h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T
 github.com/radovskyb/watcher v1.0.6 
h1:8WIQ9UxEYMZjem1OwU7dVH94DXXk9mAIE1i8eqHD+IY=
 github.com/radovskyb/watcher v1.0.6/go.mod 
h1:78okwvY5wPdzcb1UYnip1pvrZNIVEIh/Cm+ZuvsUYIg=
 github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod 
h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
-github.com/redhat-developer/service-binding-operator v0.9.1 
h1:mZ4gp6v5lXWHmoznXtKDSuSh8q/KK7MDZODbHfkSNoY=
-github.com/redhat-developer/service-binding-operator v0.9.1/go.mod 
h1:D415gZQiz5Q8zyRbmrNrlieb6Xp73oFtCb+nCuTL6GA=
+github.com/redhat-developer/service-binding-operator v1.0.0 
h1:scogXBufgdNcavyqUKThhpgp0HKmm01Xt6YEV1viE18=
+github.com/redhat-developer/service-binding-operator v1.0.0/go.mod 
h1:pODWh91lgIyjf2n9ZqWYb1EBrLTmvKnjusKw0eG4vcE=
 github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod 
h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M=
 github.com/rickb777/date v1.13.0 
h1:+8AmwLuY1d/rldzdqvqTEg7107bZ8clW37x4nsdG3Hs=
 github.com/rickb777/date v1.13.0/go.mod 
h1:GZf3LoGnxPWjX+/1TXOuzHefZFDovTyNLHDMd3qH70k=
diff --git a/pkg/trait/service_binding.go b/pkg/trait/service_binding.go
index c770e1f..19a4e29 100644
--- a/pkg/trait/service_binding.go
+++ b/pkg/trait/service_binding.go
@@ -24,6 +24,7 @@ import (
        "k8s.io/client-go/dynamic"
 
        sb 
"github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1"
+       
"github.com/redhat-developer/service-binding-operator/pkg/client/kubernetes"
        
"github.com/redhat-developer/service-binding-operator/pkg/reconcile/pipeline"
        
"github.com/redhat-developer/service-binding-operator/pkg/reconcile/pipeline/context"
        
"github.com/redhat-developer/service-binding-operator/pkg/reconcile/pipeline/handler/collect"
@@ -92,7 +93,7 @@ func (t *serviceBindingTrait) getContext(e *Environment) 
(pipeline.Context, erro
        if err != nil {
                return nil, err
        }
-       ctxProvider := context.Provider(dyn, 
context.ResourceLookup(e.Client.RESTMapper()))
+       ctxProvider := context.Provider(dyn, 
e.Client.AuthorizationV1().SubjectAccessReviews(), 
kubernetes.ResourceLookup(e.Client.RESTMapper()))
        ctx, err := ctxProvider.Get(serviceBinding)
        if err != nil {
                return nil, err

Reply via email to