diff --git a/shared/argocd/service.go b/shared/argocd/service.go index a75b6b3..58ad621 100644 --- a/shared/argocd/service.go +++ b/shared/argocd/service.go @@ -140,7 +140,8 @@ 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) @@ -148,9 +149,13 @@ func (svc *argoCDService) GetAppDetails(ctx context.Context, appSource *v1alpha1 } } + 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{