Skip to content

Using .repo.GetAppDetails).Helm.Name returns empty string #15998

@joaoestrela

Description

@joaoestrela

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

Using {{(call .repo.GetAppDetails).Helm.Name }} return a empty string

To Reproduce

Creating a notification template like the presented bellow, on a sync success the message will only have "---" as title instead of "RELEASE-NAME ---"

template.app-sync-succeeded: |
        message: |
          Application {{.app.metadata.name}} has been successfully synced at {{.app.status.operationState.finishedAt}}.
          Sync operation details are available at: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true .
        slack:
          attachments: |-
            [{
              "title": "{{ (call .repo.GetAppDetails).Helm.Name }} ---",
              "title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}",
              "color": "#18be52",
              "fields": [
              {
                "title": "Sync Status",
                "value": "{{.app.status.sync.status}}",
                "short": true
              }
              ]
            }]

Expected behavior

Using {{(call .repo.GetAppDetails).Helm.Name }} should return a string with Helm Release Name

Version

  argocd: v2.8.4+c279299
  BuildDate: 2023-09-13T19:12:09Z
  GitCommit: c27929928104dc37b937764baf65f38b78930e59
  GitTreeState: clean
  GoVersion: go1.20.6
  Compiler: gc
  Platform: linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingversion:EOLLatest confirmed affected version has reached EOL

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions