Skip to content

Commit f25cda3

Browse files
authored
chore(argo-cd): Remove duplicate ApplicationSet features (argoproj#1598)
Signed-off-by: Petr Drastil <[email protected]>
1 parent a0784fd commit f25cda3

File tree

6 files changed

+29
-30
lines changed

6 files changed

+29
-30
lines changed

charts/argo-cd/Chart.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v2.5.3
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.15.1
6+
version: 5.15.2
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -23,6 +23,7 @@ dependencies:
2323
condition: redis-ha.enabled
2424
annotations:
2525
artifacthub.io/changes: |
26-
- "[Fixed]: TLS secret name so Dex correctly generates the checksum for argocd-dex-server-tls."
27-
- "[Fixed]: Standardise the naming convention of the TLS secret manifests."
28-
- "[Added]: Add checksum to Repo-Server for the argocd-repo-server-tls secret."
26+
- "[Changed]: ApplicationSet now automatically detects leader election"
27+
- "[Changed]: Simplified ApplicationSet RBAC rules"
28+
- "[Removed]: Configuration option applicationset.args.debug"
29+
- "[Removed]: Configuration option applicationset.args.enableLeaderElection"

charts/argo-cd/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,9 +950,7 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
950950
| Key | Type | Default | Description |
951951
|-----|------|---------|-------------|
952952
| applicationSet.affinity | object | `{}` | Assign custom [affinity] rules |
953-
| applicationSet.args.debug | bool | `false` | Print debug logs |
954953
| applicationSet.args.dryRun | bool | `false` | Enable dry run mode |
955-
| applicationSet.args.enableLeaderElection | bool | `false` | The default leader election setting |
956954
| applicationSet.args.metricsAddr | string | `":8080"` | The default metric address |
957955
| applicationSet.args.policy | string | `"sync"` | How application is synced between the generator and the cluster |
958956
| applicationSet.args.probeBindAddr | string | `":8081"` | The default health check port |

charts/argo-cd/templates/NOTES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ REMOVED option controller.service - Use controller.metrics
5858
{{- if .Values.repoServer.copyutil }}
5959
REMOVED option repoSever.copyutil.resources - Use repoServer.resources
6060
{{- end }}
61+
{{- if .Values.applicationSet.args.debug }}
62+
REMOVED option applicationSet.args.debug - Use applicationSet.logLevel: debug
63+
{{- end }}
64+
{{- if .Values.applicationSet.args.enableLeaderElection }}
65+
REMOVED option applicationSet.args.enableLeaderElection - Value determined based on replicas
66+
{{- end }}
6167

6268
In order to access the server UI you have the following options:
6369

charts/argo-cd/templates/argocd-applicationset/deployment.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,16 @@ spec:
4141
command:
4242
- entrypoint.sh
4343
- argocd-applicationset-controller
44-
- --logformat
45-
- {{ default .Values.global.logging.format .Values.applicationSet.logFormat }}
46-
- --loglevel
47-
- {{ default .Values.global.logging.level .Values.applicationSet.logLevel }}
44+
- --argocd-repo-server={{ template "argo-cd.repoServer.fullname" . }}:{{ .Values.repoServer.service.port }}
45+
- --enable-leader-election={{ gt ( .Values.applicationSet.replicaCount | int64) 1 }}
4846
- --metrics-addr={{ .Values.applicationSet.args.metricsAddr }}
4947
- --probe-addr={{ .Values.applicationSet.args.probeBindAddr }}
50-
{{- if or (gt ( .Values.applicationSet.replicaCount | int64) 1) .Values.applicationSet.args.enableLeaderElection }}
51-
- --enable-leader-election=true
52-
{{- end }}
53-
- --argocd-repo-server={{ template "argo-cd.repoServer.fullname" . }}:{{ .Values.repoServer.service.port }}
5448
- --policy={{ .Values.applicationSet.args.policy }}
55-
- --debug={{ .Values.applicationSet.args.debug }}
5649
- --dry-run={{ .Values.applicationSet.args.dryRun }}
50+
- --logformat
51+
- {{ default .Values.global.logging.format .Values.applicationSet.logFormat }}
52+
- --loglevel
53+
- {{ default .Values.global.logging.level .Values.applicationSet.logLevel }}
5754
{{- with .Values.applicationSet.extraArgs }}
5855
{{- toYaml . | nindent 12 }}
5956
{{- end }}

charts/argo-cd/templates/argocd-applicationset/role.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,32 @@ rules:
4747
- apiGroups:
4848
- ""
4949
resources:
50-
- secrets
5150
- configmaps
5251
verbs:
52+
- create
53+
- update
54+
- delete
5355
- get
5456
- list
57+
- patch
5558
- watch
5659
- apiGroups:
57-
- apps
58-
- extensions
60+
- ""
5961
resources:
60-
- deployments
62+
- secrets
6163
verbs:
6264
- get
6365
- list
6466
- watch
65-
# Leader election
6667
- apiGroups:
67-
- ""
68+
- apps
69+
- extensions
6870
resources:
69-
- configmaps
71+
- deployments
7072
verbs:
71-
- create
72-
- update
73-
- delete
74-
- patch
73+
- get
74+
- list
75+
- watch
7576
- apiGroups:
7677
- coordination.k8s.io
7778
resources:

charts/argo-cd/values.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,12 +2153,8 @@ applicationSet:
21532153
metricsAddr: :8080
21542154
# -- The default health check port
21552155
probeBindAddr: :8081
2156-
# -- The default leader election setting
2157-
enableLeaderElection: false
21582156
# -- How application is synced between the generator and the cluster
21592157
policy: sync
2160-
# -- Print debug logs
2161-
debug: false
21622158
# -- Enable dry run mode
21632159
dryRun: false
21642160

0 commit comments

Comments
 (0)