Skip to content

Commit

Permalink
Update util_helm.go
Browse files Browse the repository at this point in the history
Signed-off-by: Ranjith M P <[email protected]>
  • Loading branch information
r1jt authored Oct 24, 2024
1 parent 97631d3 commit e5e9c7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/k8stest/util_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
}

0 comments on commit e5e9c7d

Please sign in to comment.