feat(argo-cd): add flag and labels for application labels (#1021)

* add flag and labels for application labels

Signed-off-by: Antoine Bourayne <antoine.bourayne@octo.com>

* upgrade chart version

Signed-off-by: Antoine Bourayne <antoine.bourayne@octo.com>

Co-authored-by: Antoine Bourayne <antoine.bourayne@octo.com>
Co-authored-by: Marko Bevc <marko@scalefactory.com>
main argo-cd-3.26.11
antoinebourayne 2021-11-24 17:30:09 +01:00 committed by GitHub
parent 46d43f8af3
commit 7ddcd377f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 2 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v2.1.7
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 3.26.10
version: 3.26.11
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: |
- "[Changed]: Update to app version 2.1.7"
- "[Changed]: add flag and labels for application labels"

View File

@ -256,6 +256,8 @@ NAME: my-release
| controller.livenessProbe.timeoutSeconds | int | `1` | Number of seconds after which the [probe] times out |
| 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.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 |

View File

@ -54,6 +54,12 @@ spec:
- {{ .Values.controller.logFormat }}
- --loglevel
- {{ .Values.controller.logLevel }}
{{- if .Values.controller.metrics.applicationLabels.enabled }}
- --metrics-application-labels
{{- range .Values.controller.metrics.applicationLabels.labels }}
- {{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if or (and .Values.redis.enabled (not $redisHa.enabled)) (and $redisHa.enabled $redisHa.haproxy.enabled) }}
- --redis
- {{ template "argo-cd.redis.fullname" . }}:{{ .Values.redis.servicePort }}

View File

@ -215,6 +215,11 @@ controller:
metrics:
# -- Deploy metrics service
enabled: false
applicationLabels:
# -- Enables additional labels in argocd_app_labels metric
enabled: false
# -- Additional labels
labels: {}
service:
# -- Metrics service annotations
annotations: {}