feat(argo-rollouts): add replicas variable for controller and dashboard pods

Signed-off-by: Hui Kang <hui.kang@salesforce.com>
This commit is contained in:
Hui Kang 2021-08-16 10:34:04 -04:00
parent 3053af0500
commit 1f547f2e1d
5 changed files with 8 additions and 1 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v1.0.2" appVersion: "v1.0.2"
description: A Helm chart for Argo Rollouts description: A Helm chart for Argo Rollouts
name: argo-rollouts name: argo-rollouts
version: 2.0.0 version: 2.0.1
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
maintainers: maintainers:
@ -12,3 +12,4 @@ maintainers:
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Added]: Dashboard manifests" - "[Added]: Dashboard manifests"
- "[Added]: replicas variables for controller and dashboard"

View file

@ -34,6 +34,7 @@ If dashboard is installed by `--set dashboard.enabled=true`, checkout the argo-r
|-----|------|---------|-------------| |-----|------|---------|-------------|
| clusterInstall | bool | `true` | `false` runs controller in namespaced mode (does not require cluster RBAC) | | clusterInstall | bool | `true` | `false` runs controller in namespaced mode (does not require cluster RBAC) |
| controller.component | string | `"rollouts-controller"` | Value of label `app.kubernetes.io/component` | | controller.component | string | `"rollouts-controller"` | Value of label `app.kubernetes.io/component` |
| controller.replicas | int | `1` | The number of controller pods to run |
| controller.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | | controller.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| controller.image.registry | string | `quay.io` | Registry to use | | controller.image.registry | string | `quay.io` | Registry to use |
| controller.image.repository | string | `"argoproj/argo-rollouts"` | Repository to use | | controller.image.repository | string | `"argoproj/argo-rollouts"` | Repository to use |
@ -58,6 +59,7 @@ If dashboard is installed by `--set dashboard.enabled=true`, checkout the argo-r
| containerSecurityContext | object | `{}` | Security Context to set on container level | | containerSecurityContext | object | `{}` | Security Context to set on container level |
| dashboard.enabled | bool | `false` | Deploy dashboard server | | dashboard.enabled | bool | `false` | Deploy dashboard server |
| dashboard.component | string | `"rollouts-dashboard"` | Value of label `app.kubernetes.io/component` | | dashboard.component | string | `"rollouts-dashboard"` | Value of label `app.kubernetes.io/component` |
| dashboard.replicas | int | `1` | The number of dashboard pods to run |
| dashboard.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | | dashboard.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| dashboard.image.registry | string | `quay.io` | Registry to use | | dashboard.image.registry | string | `quay.io` | Registry to use |
| dashboard.image.repository | string | `"argoproj/kubectl-argo-rollouts"` | Repository to use | | dashboard.image.repository | string | `"argoproj/kubectl-argo-rollouts"` | Repository to use |

View file

@ -12,6 +12,7 @@ spec:
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }} {{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
strategy: strategy:
type: Recreate type: Recreate
replicas: {{ .Values.controller.replicas }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }} {{- with .Values.podAnnotations }}

View file

@ -13,6 +13,7 @@ spec:
app.kubernetes.io/component: {{ .Values.dashboard.component }} app.kubernetes.io/component: {{ .Values.dashboard.component }}
strategy: strategy:
type: Recreate type: Recreate
replicas: {{ .Values.dashboard.replicas }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }} {{- with .Values.podAnnotations }}

View file

@ -4,6 +4,7 @@ clusterInstall: true
controller: controller:
component: rollouts-controller component: rollouts-controller
replicas: 1
## Node selectors and tolerations for server scheduling to nodes with taints ## Node selectors and tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
## ##
@ -97,6 +98,7 @@ imagePullSecrets: []
dashboard: dashboard:
enabled: false enabled: false
replicas: 1
component: rollouts-dashboard component: rollouts-dashboard
## Node selectors and tolerations for server scheduling to nodes with taints ## Node selectors and tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/