Skip to content

Commit 3174f52

Browse files
authored
chore(argo-cd): add priorityClassName to redis-secret-init job (argoproj#2709)
Signed-off-by: Thomas Berreis <[email protected]>
1 parent f431e9b commit 3174f52

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-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.11.1
33
kubeVersion: ">=1.23.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 6.10.1
6+
version: 6.10.2
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -27,4 +27,4 @@ annotations:
2727
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
2828
artifacthub.io/changes: |
2929
- kind: added
30-
description: Added node selector and tolerations for the redis secret init job
30+
description: Added priorityClassName for the redis secret init job

charts/argo-cd/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,7 @@ If you use an External Redis (See Option 3 above), this Job is not deployed.
13681368
| redisSecretInit.nodeSelector | object | `{}` (defaults to global.nodeSelector) | Node selector to be added to the Redis secret-init Job |
13691369
| redisSecretInit.podAnnotations | object | `{}` | Annotations to be added to the Redis secret-init Job |
13701370
| redisSecretInit.podLabels | object | `{}` | Labels to be added to the Redis secret-init Job |
1371+
| redisSecretInit.priorityClassName | string | `""` (defaults to global.priorityClassName) | Priority class for Redis secret-init Job |
13711372
| redisSecretInit.resources | object | `{}` | Resource limits and requests for Redis secret-init Job |
13721373
| redisSecretInit.securityContext | object | `{}` | Redis secret-init Job pod-level security context |
13731374
| redisSecretInit.serviceAccount.annotations | object | `{}` | Annotations applied to created service account |

charts/argo-cd/templates/redis-secret-init/job.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ spec:
4949
securityContext:
5050
{{- toYaml . | nindent 8 }}
5151
{{- end }}
52+
{{- with .Values.redisSecretInit.priorityClassName | default .Values.global.priorityClassName }}
53+
priorityClassName: {{ . }}
54+
{{- end }}
5255
restartPolicy: OnFailure
5356
{{- with .Values.redisSecretInit.nodeSelector | default .Values.global.nodeSelector }}
5457
nodeSelector:

charts/argo-cd/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,10 @@ redisSecretInit:
16621662
# -- Automount API credentials for the Service Account
16631663
automountServiceAccountToken: true
16641664

1665+
# -- Priority class for Redis secret-init Job
1666+
# @default -- `""` (defaults to global.priorityClassName)
1667+
priorityClassName: ""
1668+
16651669
# -- Node selector to be added to the Redis secret-init Job
16661670
# @default -- `{}` (defaults to global.nodeSelector)
16671671
nodeSelector: {}

0 commit comments

Comments
 (0)