-
Couldn't load subscription status.
- Fork 184
Description
Hi,
I have implemented logic to include the new image tag in the notification when ArgoCD successfully syncs an application. However, sometimes the notification still shows the previous image tag instead of the updated one. The logic used for extracting the image tag is:
{
"title": "Image Tag",
"value": "{{ `{{ $image := index .app.status.summary.images 0 }}` }}{{ `{{ $parts := split ":" $image }}{{ $parts._1 }}` }}",
"short": true
}
Despite ensuring the logic fetches the latest image, the old tag appears intermittently. What could be causing this issue?
Additionally, I want to convert the
startedAt and finishedAt timestamps from UTC to IST in the notification. The current implementation is:
{
"title": "Finished At",
"value": "{{ `{{ .app.status.operationState.finishedAt }}` }}",
"short": true
},
{
"title": "Started At",
"value": "{{ `{{ .app.status.operationState.startedAt }}` }}",
"short": true
}
How can I ensure that these timestamps are correctly converted to IST before being displayed in the notification?