Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleChimera committed Sep 9, 2024
1 parent ba527aa commit e3a69b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/resmap/resmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
package resmap

import (
"fmt"

"sigs.k8s.io/kustomize/api/ifc"
"sigs.k8s.io/kustomize/api/resource"
"sigs.k8s.io/kustomize/api/types"
Expand Down Expand Up @@ -49,7 +51,10 @@ func (g *GeneratorAsTransformer) Transform(m ResMap) error {
if err != nil {
return err
}
return m.AppendAll(rm)
if err = m.AppendAll(rm); err != nil {
return fmt.Errorf("failed to add generated resources to resmap: %w", err)
}
return nil
}

// Something that's configurable accepts an
Expand Down

0 comments on commit e3a69b9

Please sign in to comment.