Skip to content

Commit a9dd9dc

Browse files
committed
Fix go/v2 with config/v3 resources in config file to store webhook information
Signed-off-by: Adrian Orive Oneca <[email protected]>
1 parent fe481ef commit a9dd9dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/plugins/golang/v2/scaffolds/webhook.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ func (s *webhookScaffolder) newUniverse() *model.Universe {
6464
}
6565

6666
func (s *webhookScaffolder) scaffold() error {
67+
if err := s.config.UpdateResource(s.resource); err != nil {
68+
return fmt.Errorf("error updating resource: %w", err)
69+
}
70+
6771
if err := machinery.NewScaffold().Execute(
6872
s.newUniverse(),
6973
&api.Webhook{},

0 commit comments

Comments
 (0)