From 29cefed05d30a258b36197ec3e4e5abc45e32ccc Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Fri, 4 Oct 2019 21:20:50 +0100 Subject: [PATCH] fix webhook by adding validation in its resources --- pkg/scaffold/v2/webhook/webhook.go | 5 +++++ 1 file changed, 5 insertions(+) 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 }}