Skip to content

Commit

Permalink
organize code
Browse files Browse the repository at this point in the history
  • Loading branch information
k15r committed Dec 15, 2023
1 parent 6b1afa5 commit cafc83d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/controller/operator/eventing/eventmesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ const (
secretKeyClientSecret = "client_secret"
secretKeyTokenURL = "token_url"
secretKeyCertsURL = "certs_url"

EventMeshSecretMissingMessage = "The specified EventMesh secret is not found. Please provide an existing secret."
)

var (
ErrEMSecretMessagingMissing = errors.New("messaging is missing from EM secret")
ErrEMSecretNamespaceMissing = errors.New("namespace is missing from EM secret")
ErrEventMeshSecretMissing = errors.New(EventMeshSecretMissingMessage)
)

type oauth2Credentials struct {
Expand All @@ -41,10 +44,6 @@ type oauth2Credentials struct {
certsURL []byte
}

const EventMeshSecretMissingMessage = "The specified EventMesh secret is not found. Please provide an existing secret."

var ErrEventMeshSecretMissing = errors.New(EventMeshSecretMissingMessage)

func (r *Reconciler) reconcileEventMeshSubManager(ctx context.Context, eventing *v1alpha1.Eventing,
eventMeshSecret *kcorev1.Secret, log *zap.SugaredLogger,
) error {
Expand Down

0 comments on commit cafc83d

Please sign in to comment.