diff --git a/cmd/webhook/main.go b/cmd/webhook/main.go index 2e1620cd200..fda79c1ad15 100644 --- a/cmd/webhook/main.go +++ b/cmd/webhook/main.go @@ -97,8 +97,8 @@ func main() { v1alpha1.SchemeGroupVersion.WithKind("TaskRun"): &v1alpha1.TaskRun{}, v1alpha1.SchemeGroupVersion.WithKind("PipelineRun"): &v1alpha1.PipelineRun{}, }, - Logger: logger, - + Logger: logger, + DisallowUnknownFields: true, // Decorate contexts with the current state of the config. WithContext: func(ctx context.Context) context.Context { return v1alpha1.WithDefaultConfigurationName(store.ToContext(ctx))