From 683ed19c032e2a87cf2c9fb07e6b7a6b096ae33c Mon Sep 17 00:00:00 2001 From: Ranjith M P <92041707+r1jt@users.noreply.github.com> Date: Thu, 24 Oct 2024 01:31:54 +0530 Subject: [PATCH] Update helm_utils.go Signed-off-by: Ranjith M P <92041707+r1jt@users.noreply.github.com> --- apps/helm_utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/helm_utils.go b/apps/helm_utils.go index 23d3bc4..cab7f24 100644 --- a/apps/helm_utils.go +++ b/apps/helm_utils.go @@ -190,6 +190,9 @@ func HelmGetValues(releaseName string, namespace string) ([]byte, error) { // Save values for a release from helm command to a yaml file func SaveHelmValues(releaseName string, namespace string, filePath string) error { output, err := HelmGetValues(releaseName, namespace) + if err != nil { + return err + } dir := filepath.Dir(filePath) err = os.MkdirAll(dir, 0755) // Ensure intermediate directories are created if err != nil {