Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context in template shows no value #108

Open
ju187 opened this issue Oct 28, 2022 · 1 comment
Open

context in template shows no value #108

ju187 opened this issue Oct 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ju187
Copy link

ju187 commented Oct 28, 2022

Defined a context in the configmap and the notification was trigger. However the .context.fieldname always shows this is with Argo rollouts. Here is the configmap for the notification
...
data:
context: |
region: "east"
environmentName: "staging"

service.webhook.form: |
url: http://172.20.2.210:4566/00000000000/canary-status-queue
headers:
- name: Content-Type
value: application/x-www-form-urlencoded

template.rollout-completed: |
webhook:
form:
method: POST
body: Action=SendMessage&MessageBody={"environment":"{{ .context.environmentName }}","rollout":"{{.rollout.metadata.name}}","status":"completed"}

{{.context.xxx}} are in several sample templates, does this field only work for ArgoCD?

@pasha-codefresh pasha-codefresh added the bug Something isn't working label Dec 1, 2022
@ppaez-life360
Copy link

I'm having the same issue using Slack. The same notifications-engine is supposed to be used by both, ArgoCD and Argo Rollouts, but it doesn't seem to work for the second one.

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

No branches or pull requests

3 participants