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

KustomizationAppSpec #371

Open
j3r3my opened this issue Dec 11, 2021 · 2 comments
Open

KustomizationAppSpec #371

j3r3my opened this issue Dec 11, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@j3r3my
Copy link

j3r3my commented Dec 11, 2021

Summary

Following the documentation in notifications, trying to get the KustomizeAppSpec like so:

{
  "title": "Versions",
  "value": {{ (call .repo.GetAppDetails).Kustomize "*apiclient.KustomizeAppSpec" }},
  "short": true
},

Every permutation or attempt to reformat this call to get the Kustomize details for an app (app-deployed) fails every time. As written above this call fails with the following:

failed to notify 'console:stdout': template: app-deployed:23:17: executing "app-deployed" at <call .repo.GetAppDetails>: error calling call: runtime error: invalid memory address or nil poi
nter dereference

Diagnostics

We are running Azure Redhat Openshift on the latest version (4.8)

What version of Argo CD and Argo CD Notifications are you running?
ArgoCD: v2.1.6
ArgoCD Notifications: v1.2.0

I am assuming this is me not understanding the proper call .repo.GetAppDetails syntax and the current documentation is a one-liner; this could probably be improved to show an example of how to properly configure this block in a template file.


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@j3r3my j3r3my added the bug Something isn't working label Dec 11, 2021
@milpog
Copy link

milpog commented Dec 29, 2021

I was able to extract Images property from KustomizeAppSpec using following call.

(call .repo.GetAppDetails).Kustomize.Images

I needed first image on the list so used another call to retrieve it

index (call .repo.GetAppDetails).Kustomize.Images 0

@leoskyrocker
Copy link

running into the same, can't even call call .repo.GetAppDetails

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants