Skip to content

Commit

Permalink
constTovar
Browse files Browse the repository at this point in the history
  • Loading branch information
vaidikcode committed Jan 23, 2025
1 parent 1b3287e commit 562d64c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/apis/messaging/v1/in_memory_channel_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ package v1
import (
"context"
"fmt"
"knative.dev/pkg/system"

"knative.dev/pkg/apis"
"knative.dev/pkg/kmp"

"knative.dev/eventing/pkg/apis/eventing"
)

const eventingControllerSAName = "system:serviceaccount:knative-eventing:eventing-controller"
var eventingControllerSAName = fmt.Sprintf("system:serviceaccount:%s:eventing-controller", system.Namespace())

func (imc *InMemoryChannel) Validate(ctx context.Context) *apis.FieldError {
errs := imc.Spec.Validate(ctx).ViaField("spec")
Expand Down

0 comments on commit 562d64c

Please sign in to comment.