fix(argo-cd): ArgoCD application controller - metrics application labels (#1167)
* application controller metrics application labels changed from map to list.
Updated templating to set the correct arguments.
Signed-off-by: Aaron Jones <aaron.jones@fundingcircle.com>
* bring 'metrics-application-labels' outside of range block
Signed-off-by: Aaron Jones <aaron.jones@fundingcircle.com>
* Revert "bring 'metrics-application-labels' outside of range block"
This reverts commit c245db6d31
.
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
pull/1172/head
argo-cd-3.35.4
parent
8b26bed62f
commit
dde043a055
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||
appVersion: v2.2.5
|
||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||
name: argo-cd
|
||||
version: 3.35.3
|
||||
version: 3.35.4
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||
keywords:
|
||||
|
@ -21,4 +21,4 @@ dependencies:
|
|||
condition: redis-ha.enabled
|
||||
annotations:
|
||||
artifacthub.io/changes: |
|
||||
- "[Fixed]: Create service account for repo server by default"
|
||||
- "[Fixed]: ArgoCD application controller metric application label templating"
|
||||
|
|
|
@ -263,7 +263,7 @@ NAME: my-release
|
|||
| controller.logFormat | string | `"text"` | Application controller log format. Either `text` or `json` |
|
||||
| controller.logLevel | string | `"info"` | Application controller log level |
|
||||
| controller.metrics.applicationLabels.enabled | bool | `false` | Enables additional labels in argocd_app_labels metric |
|
||||
| controller.metrics.applicationLabels.labels | object | `{}` | Additional labels |
|
||||
| controller.metrics.applicationLabels.labels | list | `[]` | Additional labels |
|
||||
| controller.metrics.enabled | bool | `false` | Deploy metrics service |
|
||||
| controller.metrics.rules.enabled | bool | `false` | Deploy a PrometheusRule for the application controller |
|
||||
| controller.metrics.rules.spec | list | `[]` | PrometheusRule.Spec for the application controller |
|
||||
|
|
|
@ -57,9 +57,9 @@ spec:
|
|||
- --loglevel
|
||||
- {{ .Values.controller.logLevel }}
|
||||
{{- if .Values.controller.metrics.applicationLabels.enabled }}
|
||||
- --metrics-application-labels
|
||||
{{- range .Values.controller.metrics.applicationLabels.labels }}
|
||||
- {{- toYaml . | nindent 8 }}
|
||||
- --metrics-application-labels
|
||||
- {{ . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if or (and .Values.redis.enabled (not $redisHa.enabled)) (and $redisHa.enabled $redisHa.haproxy.enabled) }}
|
||||
|
|
|
@ -251,7 +251,7 @@ controller:
|
|||
# -- Enables additional labels in argocd_app_labels metric
|
||||
enabled: false
|
||||
# -- Additional labels
|
||||
labels: {}
|
||||
labels: []
|
||||
service:
|
||||
# -- Metrics service annotations
|
||||
annotations: {}
|
||||
|
|
Loading…
Reference in New Issue