Skip to content

Commit

Permalink
Update cmd/webhook/main.go
Browse files Browse the repository at this point in the history
- Add config-sugar map to Config Validator Webhook
  • Loading branch information
xtreme-sameer-vohra committed Apr 1, 2022
1 parent 4f76e9b commit e194f53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import (
pingdefaultconfig "knative.dev/eventing/pkg/apis/sources/config"
sourcesv1 "knative.dev/eventing/pkg/apis/sources/v1"
sourcesv1beta2 "knative.dev/eventing/pkg/apis/sources/v1beta2"
sugar "knative.dev/eventing/pkg/apis/sugar"
"knative.dev/eventing/pkg/reconciler/sinkbinding"
)

Expand Down Expand Up @@ -175,6 +176,7 @@ func NewConfigValidationController(ctx context.Context, _ configmap.Watcher) *co
// metrics.ConfigMapName(): metricsconfig.NewObservabilityConfigFromConfigMap,
logging.ConfigMapName(): logging.NewConfigFromConfigMap,
leaderelection.ConfigMapName(): leaderelection.NewConfigFromConfigMap,
sugar.ConfigName: sugar.NewConfigFromConfigMap,
},
)
}
Expand Down

0 comments on commit e194f53

Please sign in to comment.