feat(argo-cd): Add support for configuring argo-notifications log level and format (#2127)

* Add env vars for notification logging.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Indent.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Update CHANGELOG.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Bump chart version.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Remove extra line.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Bump to 5.6.38.

Signed-off-by: Josh Baird <jbaird@galileo.io>

---------

Signed-off-by: Josh Baird <jbaird@galileo.io>
This commit is contained in:
Josh Baird 2023-06-26 10:53:40 -04:00 committed by GitHub
parent 4d0ae17c2f
commit 78e99e9911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 5 deletions

View file

@ -3,7 +3,7 @@ appVersion: v2.7.6
kubeVersion: ">=1.23.0-0" kubeVersion: ">=1.23.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 5.36.9 version: 5.36.10
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources: sources:
@ -27,4 +27,4 @@ annotations:
url: https://argoproj.github.io/argo-helm/pgp_keys.asc url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: added - kind: added
description: Added `configs.params.create` value to the argo-cd chart description: Add `ARGOCD_NOTIFICATIONS_CONTROLLER_LOGLEVEL` and `ARGOCD_NOTIFICATIONS_CONTROLLER_LOGFORMAT` env vars to argo-notifications Deployment

View file

@ -66,10 +66,22 @@ spec:
{{- range .Values.notifications.extraArgs }} {{- range .Values.notifications.extraArgs }}
- {{ . | squote }} - {{ . | squote }}
{{- end }} {{- end }}
{{- with (concat .Values.global.env .Values.notifications.extraEnv) }}
env: env:
{{- toYaml . | nindent 12 }} {{- with (concat .Values.global.env .Values.notifications.extraEnv) }}
{{- end }} {{- toYaml . | nindent 12 }}
{{- end }}
- name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGLEVEL
valueFrom:
configMapKeyRef:
key: notificationscontroller.log.level
name: argocd-cmd-params-cm
optional: true
- name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGFORMAT
valueFrom:
configMapKeyRef:
key: notificationscontroller.log.format
name: argocd-cmd-params-cm
optional: true
{{- with .Values.notifications.extraEnvFrom }} {{- with .Values.notifications.extraEnvFrom }}
envFrom: envFrom:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}