Skip to content

Commit

Permalink
Merge pull request #171 from droot/bugfix/webhook-panic
Browse files Browse the repository at this point in the history
🐛 skip generating webhooks when no markers defined
  • Loading branch information
k8s-ci-robot authored Mar 14, 2019
2 parents 1ce3af5 + 07bb6fd commit d296532
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/webhook/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func Generate(o *Options) error {
return fmt.Errorf("failed to parse the input dir: %v", err)
}

if len(o.webhooks) == 0 {
return nil
}

objs, err := o.Generate()
if err != nil {
return err
Expand Down

0 comments on commit d296532

Please sign in to comment.