From e5e9c7d3270e0f1743465dc60e6eefe148a45d77 Mon Sep 17 00:00:00 2001 From: Ranjith M P <92041707+r1jt@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:34:42 +0530 Subject: [PATCH] Update util_helm.go Signed-off-by: Ranjith M P <92041707+r1jt@users.noreply.github.com> --- common/k8stest/util_helm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/k8stest/util_helm.go b/common/k8stest/util_helm.go index 7639bab..9e5eda9 100644 --- a/common/k8stest/util_helm.go +++ b/common/k8stest/util_helm.go @@ -8,7 +8,7 @@ import ( logf "sigs.k8s.io/controller-runtime/pkg/log" ) -func UpgradeHelmChart(helmChart, namespace, releaseName, version string, values map[string]interface{}) error { +func UpgradeHelmChart(helmChart, namespace, releaseName, version string, values map[string]interface{}) ([]byte, error) { var vals []string for k, v := range values { vals = append(vals, fmt.Sprintf("%s=%v", k, v)) @@ -20,7 +20,7 @@ func UpgradeHelmChart(helmChart, namespace, releaseName, version string, values // Execute the command. output, err := cmd.CombinedOutput() if err != nil { - return fmt.Errorf("failed to upgrade with Helm: %v\n%s", err, output) + return output, fmt.Errorf("failed to upgrade with Helm: %v\n%s", err, output) } - return nil + return output, nil }