Skip to content

Commit 1ef5f94

Browse files
fix webhook by adding validation in its resources
1 parent 2eebf56 commit 1ef5f94

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/scaffold/v2/webhook/webhook.go

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ func (a *Webhook) GetInput() (input.Input, error) {
8080
return a.Input, nil
8181
}
8282

83+
// Validate validates the values
84+
func (g *Webhook) Validate() error {
85+
return g.Resource.Validate()
86+
}
87+
8388
var (
8489
WebhookTemplate = `{{ .Boilerplate }}
8590

0 commit comments

Comments
 (0)