feat(argo-rollouts): Support revisionHistoryLimit

Signed-off-by: yu-croco <yu.croco@gmail.com>
This commit is contained in:
yu-croco 2024-05-23 12:40:58 +09:00
parent 3174f52ffc
commit ef645f3579
5 changed files with 10 additions and 2 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v1.6.6 appVersion: v1.6.6
description: A Helm chart for Argo Rollouts description: A Helm chart for Argo Rollouts
name: argo-rollouts name: argo-rollouts
version: 2.35.2 version: 2.35.3
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
keywords: keywords:
@ -19,4 +19,4 @@ annotations:
url: https://argoproj.github.io/argo-helm/pgp_keys.asc url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: added - kind: added
description: Added pod labels for the controller and the dashboard components description: Support revisionHistoryLimit

View file

@ -121,6 +121,7 @@ For full list of changes please check ArtifactHub [changelog].
| controller.readinessProbe | object | See [values.yaml] | Configure readiness [probe] for the controller | | controller.readinessProbe | object | See [values.yaml] | Configure readiness [probe] for the controller |
| controller.replicas | int | `2` | The number of controller pods to run | | controller.replicas | int | `2` | The number of controller pods to run |
| controller.resources | object | `{}` | Resource limits and requests for the controller pods. | | controller.resources | object | `{}` | Resource limits and requests for the controller pods. |
| controller.revisionHistoryLimit | int | `10` | The number of revisions to keep |
| controller.tolerations | list | `[]` | [Tolerations] for use with node taints | | controller.tolerations | list | `[]` | [Tolerations] for use with node taints |
| controller.topologySpreadConstraints | list | `[]` | Assign custom [TopologySpreadConstraints] rules to the controller | | controller.topologySpreadConstraints | list | `[]` | Assign custom [TopologySpreadConstraints] rules to the controller |
| controller.trafficRouterPlugins | object | `{}` | Configures 3rd party traffic router plugins for controller | | controller.trafficRouterPlugins | object | `{}` | Configures 3rd party traffic router plugins for controller |
@ -175,6 +176,7 @@ For full list of changes please check ArtifactHub [changelog].
| dashboard.readonly | bool | `false` | Set cluster role to readonly | | dashboard.readonly | bool | `false` | Set cluster role to readonly |
| dashboard.replicas | int | `1` | The number of dashboard pods to run | | dashboard.replicas | int | `1` | The number of dashboard pods to run |
| dashboard.resources | object | `{}` | Resource limits and requests for the dashboard pods. | | dashboard.resources | object | `{}` | Resource limits and requests for the dashboard pods. |
| dashboard.revisionHistoryLimit | int | `10` | The number of revisions to keep |
| dashboard.service.annotations | object | `{}` | Service annotations | | dashboard.service.annotations | object | `{}` | Service annotations |
| dashboard.service.externalIPs | list | `[]` | Dashboard service external IPs | | dashboard.service.externalIPs | list | `[]` | Dashboard service external IPs |
| dashboard.service.labels | object | `{}` | Service labels | | dashboard.service.labels | object | `{}` | Service labels |

View file

@ -23,6 +23,7 @@ spec:
strategy: strategy:
type: Recreate type: Recreate
replicas: {{ .Values.controller.replicas }} replicas: {{ .Values.controller.replicas }}
revisionHistoryLimit: {{ .Values.controller.revisionHistoryLimit }}
template: template:
metadata: metadata:
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.controller.podAnnotations) }} {{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.controller.podAnnotations) }}

View file

@ -24,6 +24,7 @@ spec:
strategy: strategy:
type: Recreate type: Recreate
replicas: {{ .Values.dashboard.replicas }} replicas: {{ .Values.dashboard.replicas }}
revisionHistoryLimit: {{ .Values.dashboard.revisionHistoryLimit }}
template: template:
metadata: metadata:
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.dashboard.podAnnotations) }} {{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.dashboard.podAnnotations) }}

View file

@ -90,6 +90,8 @@ controller:
tag: "" tag: ""
# -- Image pull policy # -- Image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# -- The number of revisions to keep
revisionHistoryLimit: 10
# -- Additional command line arguments to pass to rollouts-controller. A list of flags. # -- Additional command line arguments to pass to rollouts-controller. A list of flags.
extraArgs: [] extraArgs: []
@ -336,6 +338,8 @@ dashboard:
tag: "" tag: ""
# -- Image pull policy # -- Image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# -- The number of revisions to keep
revisionHistoryLimit: 10
# -- Additional command line arguments to pass to rollouts-dashboard. A list of flags. # -- Additional command line arguments to pass to rollouts-dashboard. A list of flags.
extraArgs: [] extraArgs: []
# -- Additional environment variables for rollouts-dashboard. A list of name/value maps. # -- Additional environment variables for rollouts-dashboard. A list of name/value maps.