Oliver Nguyen
08/10/2022, 4:13 AMKetan (kumare3)
08/10/2022, 4:16 AMOliver Nguyen
08/10/2022, 4:27 AMfunction "workflow" not defined
when configuring the values file. Do I need to define it somewhere? @Ketan (kumare3)Yuvraj
08/10/2022, 4:54 AMOliver Nguyen
08/10/2022, 5:05 AMYuvraj
08/10/2022, 5:14 AMtpl
for substituting the .values.usersettings
and because of that helm is also evaluating the {{ workflow.project }}
and it is not available in helm chart helperOliver Nguyen
08/10/2022, 7:01 AMYuvraj
08/10/2022, 7:03 AMnotifications.yaml: | {{ toYaml . | nindent 4 }}
And in your values file for notification please don’t use .values.usersettings,
Use direct valuesvalues.usersettings
, substitute them manually
workflow_notifications:
enabled: false
config:
notifications:
type: aws
region: "{{ .Values.userSettings.accountRegion }}"
publisher:
topicName: "arn:aws:sns:{{ .Values.userSettings.accountRegion }}:{{ .Values.userSettings.accountNumber }}:flyte-notifications-topic"
processor:
queueName: flyte-notifications-queue
accountId: "{{ .Values.userSettings.accountNumber }}"
emailer:
subject: "Flyte: {{ project }}/{{ domain }}/{{ launch_plan.name }} has '{{ phase }}'"
sender: "<mailto:flyte@example.com|flyte@example.com>"
body: |
Execution {{ workflow.project }}/{{ workflow.domain }}/{{ workflow.name }}/{{ name }} has {{ phase }}.
Details: <https://flyte.example.com/console/projects/{{> project }}/domains/{{ domain }}/executions/{{ name }}.
{{ error }}
Ketan (kumare3)
08/10/2022, 1:28 PMOliver Nguyen
08/11/2022, 6:56 AMKetan (kumare3)
08/11/2022, 3:20 PMYuvraj
08/11/2022, 5:39 PM