Skip to content

Commit

Permalink
chore(argo-cd): add shard option for clusterCredentials (#2779)
Browse files Browse the repository at this point in the history
feat(argocd): add shard option for clusterCredentials

Signed-off-by: Clement Chevalier <clement.chevalier@contentsquare.com>
  • Loading branch information
clemcvlcs committed Jun 25, 2024
1 parent ad8d48c commit 7b30c3b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/argo-cd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: v2.11.3
kubeVersion: ">=1.23.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 7.3.0
version: 7.3.1
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources:
Expand All @@ -27,4 +27,4 @@ annotations:
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: |
- kind: changed
description: make PrometheusRule deployment conditional on CRD existence
description: add shard option for clusterCredentials
3 changes: 3 additions & 0 deletions charts/argo-cd/templates/argocd-configs/cluster-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
{{- end }}
type: Opaque
stringData:
{{- if $cluster_value.shard }}
shard: {{ $cluster_value.shard }}
{{- end }}
name: {{ required "A valid .Values.configs.clusterCredentials.CLUSTERNAME.name entry is required!" $cluster_key }}
server: {{ required "A valid .Values.configs.clusterCredentials.CLUSTERNAME.server entry is required!" $cluster_value.server }}
{{- if $cluster_value.namespaces }}
Expand Down
10 changes: 10 additions & 0 deletions charts/argo-cd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,16 @@ configs:
# tlsClientConfig:
# insecure: false
# caData: "<base64 encoded certificate>"
# mycluster4-sharded:
# shard: 1
# server: https://mycluster4.example.com
# labels: {}
# annotations: {}
# config:
# bearerToken: "<authentication token>"
# tlsClientConfig:
# insecure: false
# caData: "<base64 encoded certificate>"

# -- Repository credentials to be used as Templates for other repos
## Creates a secret for each key/value specified below to create repository credentials
Expand Down

0 comments on commit 7b30c3b

Please sign in to comment.