Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vaidikcode committed Jan 23, 2025
1 parent ae0df7b commit cacbc0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/apis/messaging/v1/in_memory_channel_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ import (
"knative.dev/eventing/pkg/apis/eventing"
)

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

func init() {
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 cacbc0c

Please sign in to comment.