Skip to content

Commit a74761e

Browse files
committed
chore: add webhook validation
1 parent d52b937 commit a74761e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/webhook/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"context"
5-
"fmt"
65

76
sourcev1alpha1 "github.com/zeiss/knative-extension-sample-source/pkg/apis/sources/v1alpha1"
87
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -12,7 +11,6 @@ import (
1211
"knative.dev/pkg/logging"
1312
"knative.dev/pkg/metrics"
1413
"knative.dev/pkg/signals"
15-
"knative.dev/pkg/system"
1614
"knative.dev/pkg/webhook"
1715
"knative.dev/pkg/webhook/certificates"
1816
"knative.dev/pkg/webhook/configmaps"
@@ -77,7 +75,7 @@ func NewConfigValidationController(ctx context.Context, cmw configmap.Watcher) *
7775
return configmaps.NewAdmissionController(ctx,
7876

7977
// Name of the configmap webhook.
80-
fmt.Sprintf("config.webhook.%s.knative.dev", system.Namespace()),
78+
"config.webhook.sample.sources.eventing.zeiss.com",
8179

8280
// The path on which to serve the webhook.
8381
"/config-validation",

0 commit comments

Comments
 (0)