From 928f1e168e47e33b95a36a1943ee307330bd582b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= <mail@mikolajswiatek.com> Date: Mon, 2 Dec 2024 16:51:49 +0100 Subject: [PATCH] Avoid unnecessary deepcopy during config generation --- internal/pkg/agent/application/coordinator/coordinator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/agent/application/coordinator/coordinator.go b/internal/pkg/agent/application/coordinator/coordinator.go index 4033f9d6cb7..3c899735da7 100644 --- a/internal/pkg/agent/application/coordinator/coordinator.go +++ b/internal/pkg/agent/application/coordinator/coordinator.go @@ -1414,7 +1414,7 @@ func (c *Coordinator) generateComponentModel() (err error) { c.setComponentGenError(err) }() - ast := c.ast.Clone() + ast := c.ast.ShallowClone() inputs, ok := transpiler.Lookup(ast, "inputs") if ok { renderedInputs, err := transpiler.RenderInputs(inputs, c.vars)