Skip to content

Commit

Permalink
Merge pull request #344 from dsbrng25b/master
Browse files Browse the repository at this point in the history
 ✨ Do not create empty webhook/manifests.yaml file
  • Loading branch information
k8s-ci-robot authored Jan 25, 2020
2 parents f5dffba + d3a5d6b commit a1c859b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webhook/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ func (Generator) Generate(ctx *genall.GenerationContext) error {

}

if err := ctx.WriteYAML("manifests.yaml", objs...); err != nil {
return err
if len(objs) > 0 {
return ctx.WriteYAML("manifests.yaml", objs...)
}

return nil
Expand Down

0 comments on commit a1c859b

Please sign in to comment.