Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit c9c72be

Browse files
committed
fix: repo.GetAppDetails().Helm.GetParameterValueByName not get helm.values
1 parent a03eee5 commit c9c72be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/argocd/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package argocd
22

33
import (
44
"context"
5-
"encoding/json"
65
"fmt"
6+
"gopkg.in/yaml.v3"
77
"strings"
88

99
"github.com/argoproj-labs/argocd-notifications/expr/shared"
@@ -135,7 +135,7 @@ func (svc *argoCDService) GetAppDetails(ctx context.Context, appSource *v1alpha1
135135
if appSource.Helm.Values != "" {
136136
output := map[string]string{}
137137
var valuesMap map[interface{}]interface{}
138-
if err := json.Unmarshal([]byte(appSource.Helm.Values), valuesMap); err != nil {
138+
if err := yaml.Unmarshal([]byte(appSource.Helm.Values), valuesMap); err != nil {
139139
return nil, fmt.Errorf("failed to parse : %s, appSource.Helm.Values: %v", err, appSource.Helm.Values)
140140
}
141141
flatVals(valuesMap, output)

0 commit comments

Comments
 (0)