fix: ensure the InstallChart function also attaches the debug renderer

This commit is contained in:
Jose Diaz-Gonzalez
2025-07-08 00:42:57 -04:00
parent 1cbaabdda0
commit e034421ea9

View File

@@ -242,6 +242,10 @@ func (h *HelmAgent) InstallChart(ctx context.Context, input ChartInput) error {
client.ChartPathOptions = action.ChartPathOptions{}
client.CreateNamespace = true
client.DryRun = false
if os.Getenv("DOKKU_TRACE") == "1" {
client.DryRun = true
client.PostRenderer = &DebugRenderer{}
}
client.Namespace = namespace
client.ReleaseName = input.ReleaseName
client.Timeout = input.Timeout