-
Notifications
You must be signed in to change notification settings - Fork 140
fix: repo.GetAppDetails().Helm.parameters not get argocd override value #392
base: master
Are you sure you want to change the base?
Conversation
Is there a way to use this already? |
@joaogl code branch: image: |
hi, @ss75710541 |
my notification: templates:
template.app-deployed: |
webhook:
alpha:
method: POST
body: |
{
"attachments": [{
"title": "{{ .app.metadata.name}}",
"title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}",
"color": "#18be52",
"fields": [
{
"title": "Git TAG",
"value": "{{(call .repo.GetAppDetails).Helm.GetParameterValueByName "image.tag"}}",
"short": true
}
]
}]
} my application: apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: test
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "3"
notifications.argoproj.io/subscribe.on-deployed.alpha: ""
spec:
source:
path: golang
repoURL: {{ .Values.apps_repo }}
targetRevision: aws
helm:
releaseName: test
values: |
nameOverride: test
fullnameOverride: test
imagePullSecrets:
- name: regcred
image:
repository: my-img
tag: 2.0.13
syncPolicy:
automated:
prune: true
selfHeal: true
destination:
name: {{ .Values.cluster }}
namespace: test
project: default |
@mbouamama Did you test with the Docker image I typed? Or docker image yourself building to the code? Is jyliu branch not selected? |
@mbouamama |
@ss75710541 i tested with our image quay.io/netwarps/argocd-notifications:v1.2.1.1 |
@mbouamama |
ah ok do you will fix .Helm.GetParameterValueByName too or i need to do that by my self? |
@mbouamama |
ok thx have good day @ss75710541 |
6387ed8
to
e3072b0
Compare
@tyki6 |
@ss75710541 i tested and my problem is solved thx a lot(s you did an amazing job. |
…erride value