Skip to content

Commit e677641

Browse files
authored
feat(argo-rollouts): Support revisionHistoryLimit (argoproj#2712)
* feat(argo-rollouts): Support revisionHistoryLimit Signed-off-by: yu-croco <[email protected]> * chore(argo-rollouts): Align to argo-cd's configuration Signed-off-by: yu-croco <[email protected]> --------- Signed-off-by: yu-croco <[email protected]>
1 parent 3174f52 commit e677641

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

charts/argo-rollouts/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: v1.6.6
33
description: A Helm chart for Argo Rollouts
44
name: argo-rollouts
5-
version: 2.35.2
5+
version: 2.35.3
66
home: https://github.com/argoproj/argo-helm
77
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
88
keywords:
@@ -19,4 +19,4 @@ annotations:
1919
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
2020
artifacthub.io/changes: |
2121
- kind: added
22-
description: Added pod labels for the controller and the dashboard components
22+
description: Support revisionHistoryLimit

charts/argo-rollouts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ For full list of changes please check ArtifactHub [changelog].
5151
| fullnameOverride | string | `nil` | String to fully override "argo-rollouts.fullname" template |
5252
| global.deploymentAnnotations | object | `{}` | Annotations for all deployed Deployments |
5353
| global.deploymentLabels | object | `{}` | Labels for all deployed Deployments |
54+
| global.revisionHistoryLimit | int | `10` | Number of old deployment ReplicaSets to retain. The rest will be garbage collected. |
5455
| imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry. Registry secret names as an array. |
5556
| installCRDs | bool | `true` | Install and upgrade CRDs |
5657
| keepCRDs | bool | `true` | Keep CRD's on helm uninstall |

charts/argo-rollouts/templates/controller/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ spec:
2323
strategy:
2424
type: Recreate
2525
replicas: {{ .Values.controller.replicas }}
26+
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
2627
template:
2728
metadata:
2829
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.controller.podAnnotations) }}

charts/argo-rollouts/templates/dashboard/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
strategy:
2525
type: Recreate
2626
replicas: {{ .Values.dashboard.replicas }}
27+
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
2728
template:
2829
metadata:
2930
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.dashboard.podAnnotations) }}

charts/argo-rollouts/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ global:
4343
deploymentAnnotations: {}
4444
# -- Labels for all deployed Deployments
4545
deploymentLabels: {}
46+
# -- Number of old deployment ReplicaSets to retain. The rest will be garbage collected.
47+
revisionHistoryLimit: 10
4648

4749
controller:
4850
# -- Value of label `app.kubernetes.io/component`

0 commit comments

Comments
 (0)