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

Commit

Permalink
fix: repo.GetAppDetails().Helm.GetParameterValueByName not get helm.v…
Browse files Browse the repository at this point in the history
…alues
  • Loading branch information
ss75710541 committed Apr 26, 2022
1 parent 57487ab commit 6387ed8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shared/argocd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,22 @@ func (svc *argoCDService) GetAppDetails(ctx context.Context, appSource *v1alpha1
}
flatVals(valuesMap, output)

for i := range has.Parameters {
fmt.Printf("-------flatVals output: %v", output)
for i := range appDetail.Helm.Parameters {
if v, ok := output[has.Parameters[i].Name]; ok {
has.Parameters[i].Value = v
delete(output, has.Parameters[i].Name)
break
}
}

fmt.Printf("-------after delete output: %v", output)

for k, v := range output {
appDetail.Helm.Parameters = append(appDetail.Helm.Parameters, &v1alpha1.HelmParameter{Name: k, Value: v})
}

fmt.Printf("-------appDetail.Helm.Parameters: %v", appDetail.Helm.Parameters)
}

has = &shared.HelmAppSpec{
Expand Down

0 comments on commit 6387ed8

Please sign in to comment.