Skip to content

Commit

Permalink
fix webhook by adding validation in its resources
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Oct 4, 2019
1 parent 2eebf56 commit 1ef5f94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/scaffold/v2/webhook/webhook.go
Expand Up @@ -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 }}
Expand Down

0 comments on commit 1ef5f94

Please sign in to comment.