Skip to content

Commit

Permalink
Merge pull request #1998 from Adirio/fix-go-v2-config-v3-webhooks
Browse files Browse the repository at this point in the history
🐛 Fix go/v2 with config/v3 resources in config file to store webhook information
  • Loading branch information
k8s-ci-robot committed Feb 9, 2021
2 parents fe481ef + a9dd9dc commit 72f01e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/plugins/golang/v2/scaffolds/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func (s *webhookScaffolder) newUniverse() *model.Universe {
}

func (s *webhookScaffolder) scaffold() error {
if err := s.config.UpdateResource(s.resource); err != nil {
return fmt.Errorf("error updating resource: %w", err)
}

if err := machinery.NewScaffold().Execute(
s.newUniverse(),
&api.Webhook{},
Expand Down

0 comments on commit 72f01e5

Please sign in to comment.