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

feat(argocd-notification): add context variable for templating purpose #713

Merged
merged 9 commits into from
May 11, 2021
2 changes: 1 addition & 1 deletion charts/argocd-notifications/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.1.1
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
name: argocd-notifications
type: application
version: 1.2.0
version: 1.3.0
home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords:
Expand Down
5 changes: 4 additions & 1 deletion charts/argocd-notifications/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
data:
context: |
argocdUrl: {{ .Values.argocdUrl | quote }}
{{- with .Values.context }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.notifiers }}
{{- toYaml . | nindent 2 }}
{{- end }}
Expand All @@ -21,4 +24,4 @@ data:
{{- with .Values.triggers }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/argocd-notifications/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ nodeSelector: {}
updateStrategy:
type: Recreate

context:
# Add custom values into context
# region: east
# environmentName: staging

secret:
# Whether helm chart creates controller secret
create: true
Expand Down