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

Commit 6387ed8

Browse files
committed
fix: repo.GetAppDetails().Helm.GetParameterValueByName not get helm.values
1 parent 57487ab commit 6387ed8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

shared/argocd/service.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,22 @@ func (svc *argoCDService) GetAppDetails(ctx context.Context, appSource *v1alpha1
140140
}
141141
flatVals(valuesMap, output)
142142

143-
for i := range has.Parameters {
143+
fmt.Printf("-------flatVals output: %v", output)
144+
for i := range appDetail.Helm.Parameters {
144145
if v, ok := output[has.Parameters[i].Name]; ok {
145146
has.Parameters[i].Value = v
146147
delete(output, has.Parameters[i].Name)
147148
break
148149
}
149150
}
150151

152+
fmt.Printf("-------after delete output: %v", output)
153+
151154
for k, v := range output {
152155
appDetail.Helm.Parameters = append(appDetail.Helm.Parameters, &v1alpha1.HelmParameter{Name: k, Value: v})
153156
}
157+
158+
fmt.Printf("-------appDetail.Helm.Parameters: %v", appDetail.Helm.Parameters)
154159
}
155160

156161
has = &shared.HelmAppSpec{

0 commit comments

Comments
 (0)