fix: ensure the InstallChart function also attaches the debug renderer
This commit is contained in:
1 file changed
+4
@@ -242,6 +242,10 @@ func (h *HelmAgent) InstallChart(ctx context.Context, input ChartInput) error {
|
|||||||
client.ChartPathOptions = action.ChartPathOptions{}
|
client.ChartPathOptions = action.ChartPathOptions{}
|
||||||
client.CreateNamespace = true
|
client.CreateNamespace = true
|
||||||
client.DryRun = false
|
client.DryRun = false
|
||||||
|
if os.Getenv("DOKKU_TRACE") == "1" {
|
||||||
|
client.DryRun = true
|
||||||
|
client.PostRenderer = &DebugRenderer{}
|
||||||
|
}
|
||||||
client.Namespace = namespace
|
client.Namespace = namespace
|
||||||
client.ReleaseName = input.ReleaseName
|
client.ReleaseName = input.ReleaseName
|
||||||
client.Timeout = input.Timeout
|
client.Timeout = input.Timeout
|
||||||
|
|||||||
Reference in new issue
Block a user