diff --git a/pkg/scaffold/v2/webhook/webhook.go b/pkg/scaffold/v2/webhook/webhook.go index dfb1b5ef1b2..8fff4425e6e 100644 --- a/pkg/scaffold/v2/webhook/webhook.go +++ b/pkg/scaffold/v2/webhook/webhook.go @@ -80,6 +80,11 @@ func (a *Webhook) GetInput() (input.Input, error) { return a.Input, nil } +// Validate validates the values +func (g *Webhook) Validate() error { + return g.Resource.Validate() +} + var ( WebhookTemplate = `{{ .Boilerplate }}