Skip to content

Commit

Permalink
fixed import path problem
Browse files Browse the repository at this point in the history
  • Loading branch information
yijie-04 committed Jan 26, 2024
1 parent 2c94ec7 commit 3d0d399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions pkg/auth/serviceaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import (
"knative.dev/pkg/kmeta"
pkgreconciler "knative.dev/pkg/reconciler"

"knative.dev/eventing/pkg/auth"

"go.uber.org/zap"
v1 "k8s.io/api/core/v1"
apierrs "k8s.io/apimachinery/pkg/api/errors"
Expand Down Expand Up @@ -77,7 +75,7 @@ func GetOIDCServiceAccountForResource(gvk schema.GroupVersionKind, objectMeta me
"description": fmt.Sprintf("Service Account for OIDC Authentication for %s %q", gvk.GroupKind().Kind, objectMeta.Name),
},
Labels: map[string]string{
auth.OIDCLabelKey: "enabled",
OIDCLabelKey: "enabled",
},
},
}
Expand Down
4 changes: 1 addition & 3 deletions pkg/auth/serviceaccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import (
duckv1 "knative.dev/pkg/apis/duck/v1"
kubeclient "knative.dev/pkg/client/injection/kube/client/fake"

"knative.dev/eventing/pkg/auth"

"github.com/google/go-cmp/cmp"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -111,7 +109,7 @@ func TestGetOIDCServiceAccountForResource(t *testing.T) {
"description": "Service Account for OIDC Authentication for Broker \"my-broker\"",
},
Labels: map[string]string{
auth.OIDCLabelKey: "enabled",
OIDCLabelKey: "enabled",
},
},
}
Expand Down

0 comments on commit 3d0d399

Please sign in to comment.