add context variable for templating purpose

Signed-off-by: Sergiy Gavrylenko <bigboo@bbq.agency>
Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>
This commit is contained in:
Sergiy Gavrylenko 2021-05-05 11:08:19 +03:00 committed by Sergiy Gavrylenko
parent 7efd2d4a44
commit 548a8c5c1d
2 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,9 @@ metadata:
data: data:
context: | context: |
argocdUrl: {{ .Values.argocdUrl | quote }} argocdUrl: {{ .Values.argocdUrl | quote }}
{{- with .Values.context }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.notifiers }} {{- with .Values.notifiers }}
{{- toYaml . | nindent 2 }} {{- toYaml . | nindent 2 }}
{{- end }} {{- end }}

View file

@ -19,6 +19,11 @@ nodeSelector: {}
updateStrategy: updateStrategy:
type: Recreate type: Recreate
context:
# Add custom values into context
# region: east
# environmentName: staging
secret: secret:
# Whether helm chart creates controller secret # Whether helm chart creates controller secret
create: true create: true