From 25925c0ae2f490bbe8db6a78eb1fd3212631ce01 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 23 Jan 2024 07:25:18 -0500 Subject: [PATCH] chore: remove logging from inside helm client --- plugins/scheduler-k3s/helm.go | 2 -- plugins/scheduler-k3s/triggers.go | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/scheduler-k3s/helm.go b/plugins/scheduler-k3s/helm.go index 94b176326..bf16fa1dc 100644 --- a/plugins/scheduler-k3s/helm.go +++ b/plugins/scheduler-k3s/helm.go @@ -207,11 +207,9 @@ func (h *HelmAgent) InstallOrUpgradeChart(ctx context.Context, input ChartInput) } if chartExists { - common.LogExclaim(fmt.Sprintf("Upgrading %s", input.ReleaseName)) return h.UpgradeChart(ctx, input) } - common.LogExclaim(fmt.Sprintf("Installing %s", input.ReleaseName)) return h.InstallChart(ctx, input) } diff --git a/plugins/scheduler-k3s/triggers.go b/plugins/scheduler-k3s/triggers.go index 4be8e71d4..183b68ef7 100644 --- a/plugins/scheduler-k3s/triggers.go +++ b/plugins/scheduler-k3s/triggers.go @@ -515,6 +515,7 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e return fmt.Errorf("Error parsing deploy timeout duration: %w", err) } + common.LogExclaim(fmt.Sprintf("Installing %s", appName)) err = helmAgent.InstallOrUpgradeChart(ctx, ChartInput{ ChartPath: chartPath, Namespace: namespace,