Skip to content

Commit 45c1534

Browse files
cgrspdrastil
andauthored
feat(argo-cd): Add labels for argocd-secret (argoproj#1779)
* feat(argo-cd): add secret labels field (argoproj#1778) Signed-off-by: carlos gonzález <[email protected]> Co-authored-by: Petr Drastil <[email protected]>
1 parent 132449c commit 45c1534

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

charts/argo-cd/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v2.5.7
33
kubeVersion: ">=1.22.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 5.17.4
6+
version: 5.18.0
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -23,4 +23,4 @@ dependencies:
2323
condition: redis-ha.enabled
2424
annotations:
2525
artifacthub.io/changes: |
26-
- "[Changed]: Update Argo CD extensions to v0.2.1"
26+
- "[Added]: Extra secret labels with .Values.configs.secret.labels"

charts/argo-cd/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ NAME: my-release
442442
| configs.secret.githubSecret | string | `""` | Shared secret for authenticating GitHub webhook events |
443443
| configs.secret.gitlabSecret | string | `""` | Shared secret for authenticating GitLab webhook events |
444444
| configs.secret.gogsSecret | string | `""` | Shared secret for authenticating Gogs webhook events |
445+
| configs.secret.labels | object | `{}` | Labels to be added to argocd-secret |
445446
| configs.styles | string | `""` (See [values.yaml]) | Define custom [CSS styles] for your argo instance. This setting will automatically mount the provided CSS and reference it in the argo configuration. |
446447
| configs.tlsCerts | object | See [values.yaml] | TLS certificate |
447448
| configs.tlsCertsAnnotations | object | `{}` | TLS certificate configmap annotations |

charts/argo-cd/templates/argocd-configs/argocd-secret.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ metadata:
55
name: argocd-secret
66
labels:
77
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" "secret") | nindent 4 }}
8+
{{- with .Values.configs.secret.labels }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
811
{{- with .Values.configs.secret.annotations }}
912
annotations:
1013
{{- range $key, $value := . }}

charts/argo-cd/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ configs:
392392
secret:
393393
# -- Create the argocd-secret
394394
createSecret: true
395+
# -- Labels to be added to argocd-secret
396+
labels: {}
395397
# -- Annotations to be added to argocd-secret
396398
annotations: {}
397399

0 commit comments

Comments
 (0)