Compare commits

...

5 Commits

Author SHA1 Message Date
github-actions[bot]
90146498fe Bump version to 2.14.0-rc3 (#21246)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: crenshaw-dev <350466+crenshaw-dev@users.noreply.github.com>
2024-12-18 13:33:48 -05:00
gcp-cherry-pick-bot[bot]
018014c4b0 chore: Graceful shutdown for API Server (#18642) (#21224) (#21229)
* fix: Graceful shutdown for the API server (#18642) (#20981)

* fix: Graceful shutdown for the API server (#18642)

Closes #18642

Implements a graceful shutdown the the API server. Without this, ArgoCD API server will eventually return 502 during rolling update. However, healthcheck would return 503 if the server is terminating.





* Init server only once, but keep re-initializing listeners



* Check error for SetParamInSettingConfigMap as needed after fresh master



* Prevent a data race



* Remove unused variable, don't pass lock when not necessary



* Try overriding URL instead of additional URLs



* Use a more specific url



---------





* Use a custom signal for graceful restart



* Re-run tests



---------

Signed-off-by: Andrii Korotkov <andrii.korotkov@verkada.com>
Co-authored-by: Andrii Korotkov <137232734+andrii-korotkov-verkada@users.noreply.github.com>
Co-authored-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
2024-12-18 15:11:03 +02:00
github-actions[bot]
a89d01266b Bump version to 2.14.0-rc2 (#21223)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: pasha-codefresh <39732895+pasha-codefresh@users.noreply.github.com>
2024-12-17 19:49:32 +02:00
gcp-cherry-pick-bot[bot]
684ee0bceb Revert "fix: Graceful shutdown for the API server (#18642) (#20981)" (#21221) (#21222) 2024-12-17 18:57:11 +02:00
github-actions[bot]
2ac03b5152 Bump version to 2.14.0-rc1 (#21218)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: pasha-codefresh <39732895+pasha-codefresh@users.noreply.github.com>
2024-12-17 17:08:19 +02:00
16 changed files with 97 additions and 83 deletions

View File

@@ -1 +1 @@
2.14.0
2.14.0-rc3

View File

@@ -1,2 +1,5 @@
This page is populated for released Argo CD versions. Use the version selector to view this table for a specific
version.
| Argo CD version | Kubernetes versions |
|-----------------|---------------------|
| 2.14 | v1.31, v1.30, v1.29, v1.28 |
| 2.13 | v1.30, v1.29, v1.28, v1.27 |
| 2.12 | v1.29, v1.28, v1.27, v1.26 |

View File

@@ -5,7 +5,7 @@ kind: Kustomization
images:
- name: quay.io/argoproj/argocd
newName: quay.io/argoproj/argocd
newTag: latest
newTag: v2.14.0-rc3
resources:
- ./application-controller
- ./dex

View File

@@ -24165,7 +24165,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -24435,7 +24435,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -24696,7 +24696,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -24748,7 +24748,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -25054,7 +25054,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -24133,7 +24133,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -24253,7 +24253,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -24514,7 +24514,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -24566,7 +24566,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -24872,7 +24872,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -12,4 +12,4 @@ resources:
images:
- name: quay.io/argoproj/argocd
newName: quay.io/argoproj/argocd
newTag: latest
newTag: v2.14.0-rc3

View File

@@ -12,7 +12,7 @@ patches:
images:
- name: quay.io/argoproj/argocd
newName: quay.io/argoproj/argocd
newTag: latest
newTag: v2.14.0-rc3
resources:
- ../../base/application-controller
- ../../base/applicationset-controller

View File

@@ -25506,7 +25506,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -25793,7 +25793,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -25883,7 +25883,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -26004,7 +26004,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -26291,7 +26291,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -26343,7 +26343,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -26705,7 +26705,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -27047,7 +27047,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -25476,7 +25476,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -25613,7 +25613,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -25703,7 +25703,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -25824,7 +25824,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -26111,7 +26111,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -26163,7 +26163,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -26525,7 +26525,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -26867,7 +26867,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -1736,7 +1736,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -2023,7 +2023,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -2113,7 +2113,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -2234,7 +2234,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -2521,7 +2521,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -2573,7 +2573,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -2935,7 +2935,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -3277,7 +3277,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -1706,7 +1706,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -1843,7 +1843,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -1933,7 +1933,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -2054,7 +2054,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -2341,7 +2341,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -2393,7 +2393,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -2755,7 +2755,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -3097,7 +3097,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -24625,7 +24625,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -24912,7 +24912,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -25002,7 +25002,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -25104,7 +25104,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -25365,7 +25365,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -25417,7 +25417,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -25777,7 +25777,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -26119,7 +26119,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

16
manifests/install.yaml generated
View File

@@ -24593,7 +24593,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -24730,7 +24730,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -24820,7 +24820,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -24922,7 +24922,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -25183,7 +25183,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -25235,7 +25235,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -25595,7 +25595,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -25937,7 +25937,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -855,7 +855,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -1142,7 +1142,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -1232,7 +1232,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -1334,7 +1334,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -1595,7 +1595,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -1647,7 +1647,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -2007,7 +2007,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -2349,7 +2349,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -823,7 +823,7 @@ spec:
key: applicationsetcontroller.requeue.after
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-applicationset-controller
ports:
@@ -960,7 +960,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /shared/argocd-dex
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: copyutil
securityContext:
@@ -1050,7 +1050,7 @@ spec:
key: notificationscontroller.repo.server.plaintext
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
@@ -1152,7 +1152,7 @@ spec:
- argocd
- admin
- redis-initial-password
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: IfNotPresent
name: secret-init
securityContext:
@@ -1413,7 +1413,7 @@ spec:
value: /helm-working-dir
- name: HELM_DATA_HOME
value: /helm-working-dir
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
@@ -1465,7 +1465,7 @@ spec:
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
name: copyutil
securityContext:
allowPrivilegeEscalation: false
@@ -1825,7 +1825,7 @@ spec:
key: hydrator.enabled
name: argocd-cmd-params-cm
optional: true
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -2167,7 +2167,7 @@ spec:
optional: true
- name: KUBECACHEDIR
value: /tmp/kubecache
image: quay.io/argoproj/argocd:latest
image: quay.io/argoproj/argocd:v2.14.0-rc3
imagePullPolicy: Always
name: argocd-application-controller
ports:

View File

@@ -248,6 +248,9 @@ type ApplicationSetOpts struct {
EnableScmProviders bool
}
// GracefulRestartSignal implements a signal to be used for a graceful restart trigger.
type GracefulRestartSignal struct{}
// HTTPMetricsRegistry exposes operations to update http metrics in the Argo CD
// API server.
type HTTPMetricsRegistry interface {
@@ -260,6 +263,14 @@ type HTTPMetricsRegistry interface {
ObserveExtensionRequestDuration(extension string, duration time.Duration)
}
// String is a part of os.Signal interface to represent a signal as a string.
func (g GracefulRestartSignal) String() string {
return "GracefulRestartSignal"
}
// Signal is a part of os.Signal interface doing nothing.
func (g GracefulRestartSignal) Signal() {}
// initializeDefaultProject creates the default project if it does not already exist
func initializeDefaultProject(opts ArgoCDServerOpts) error {
defaultProj := &v1alpha1.AppProject{
@@ -712,8 +723,8 @@ func (a *ArgoCDServer) Run(ctx context.Context, listeners *Listeners) {
select {
case signal := <-a.stopCh:
log.Infof("API Server received signal: %s", signal.String())
// SIGUSR1 is used for triggering a server restart
if signal != syscall.SIGUSR1 {
gracefulRestartSignal := GracefulRestartSignal{}
if signal != gracefulRestartSignal {
a.terminateRequested.Store(true)
}
a.shutdown()
@@ -847,7 +858,7 @@ func (a *ArgoCDServer) watchSettings() {
a.settingsMgr.Unsubscribe(updateCh)
close(updateCh)
// Triggers server restart
a.stopCh <- syscall.SIGUSR1
a.stopCh <- GracefulRestartSignal{}
}
func (a *ArgoCDServer) rbacPolicyLoader(ctx context.Context) {