Specify logformat for Argo-CD notifications component (#1303)

* Add: Specify logformat for Argo-CD notifications component

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* Update: Chart changelog

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* Fix: documentation

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
Nicolas Lamirault 2022-05-30 18:19:38 +02:00 committed by GitHub
parent dc4f6919d1
commit bc5a603b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v2.3.4 appVersion: v2.3.4
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: 4.7.0 version: 4.8.0
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
keywords: keywords:
@ -21,4 +21,4 @@ dependencies:
condition: redis-ha.enabled condition: redis-ha.enabled
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Changed]: Updated redis-ha dependency chart to 4.16.0" - "[Changed]: Can specify log format for Argo-CD Notifications component"

View file

@ -812,6 +812,7 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
| notifications.image.repository | string | `""` (defaults to global.image.repository) | Repository to use for the notifications controller | | notifications.image.repository | string | `""` (defaults to global.image.repository) | Repository to use for the notifications controller |
| notifications.image.tag | string | `""` (defaults to global.image.tag) | Tag to use for the notifications controller | | notifications.image.tag | string | `""` (defaults to global.image.tag) | Tag to use for the notifications controller |
| notifications.imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry | | notifications.imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
| notifications.logFormat | string | `"text"` | Application controller log format. Either `text` or `json` |
| notifications.logLevel | string | `"info"` | Set the logging level. (One of: `debug`, `info`, `warn`, `error`) | | notifications.logLevel | string | `"info"` | Set the logging level. (One of: `debug`, `info`, `warn`, `error`) |
| notifications.metrics.enabled | bool | `false` | Enables prometheus metrics server | | notifications.metrics.enabled | bool | `false` | Enables prometheus metrics server |
| notifications.metrics.port | int | `9001` | Metrics port | | notifications.metrics.port | int | `9001` | Metrics port |

View file

@ -42,6 +42,7 @@ spec:
command: command:
- argocd-notifications - argocd-notifications
- --loglevel={{ .Values.notifications.logLevel }} - --loglevel={{ .Values.notifications.logLevel }}
- --logformat={{ .Values.notifications.logFormat }}
{{- if .Values.notifications.metrics.enabled }} {{- if .Values.notifications.metrics.enabled }}
- --metrics-port={{ .Values.notifications.metrics.port }} - --metrics-port={{ .Values.notifications.metrics.port }}
{{- end }} {{- end }}

View file

@ -2218,6 +2218,8 @@ notifications:
# -- Set the logging level. (One of: `debug`, `info`, `warn`, `error`) # -- Set the logging level. (One of: `debug`, `info`, `warn`, `error`)
logLevel: info logLevel: info
# -- Application controller log format. Either `text` or `json`
logFormat: text
# -- Extra arguments to provide to the controller # -- Extra arguments to provide to the controller
extraArgs: [] extraArgs: []