Skip to content

Commit d086a8b

Browse files
vaastavJonathanMace
authored andcommitted
Implement GenerateArtifacts interface
1 parent 35cb19e commit d086a8b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plugins/kubernetes/ir.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ func (n *Application) Name() string {
1818
func (n *Application) String() string {
1919
return ir.PrettyPrintNamespace(n.AppName, "KubeApp", n.Edges, n.Nodes)
2020
}
21+
22+
// Implements ir.ArtifactGenerator
23+
func (n *Application) GenerateArtifacts(dir string) error {
24+
nodes := ir.Filter[ir.ArtifactGenerator](n.Nodes)
25+
for _, node := range nodes {
26+
err := node.GenerateArtifacts(dir)
27+
if err != nil {
28+
return err
29+
}
30+
}
31+
return nil
32+
}

0 commit comments

Comments
 (0)