From c7b3331d7b062d57d7bb3205e864a61529f2864e Mon Sep 17 00:00:00 2001 From: Vlad Voloshyn Date: Mon, 23 May 2022 08:05:11 +0300 Subject: [PATCH] feat(argo-rollouts): Add replicas option to dashboard (#1286) * feat(argo-rollouts): Add replicas option to dashboard Signed-off-by: Vlad Voloshyn * Update README Signed-off-by: Marco Kilchhofer Co-authored-by: Marco Kilchhofer --- charts/argo-rollouts/Chart.yaml | 4 ++-- charts/argo-rollouts/README.md | 3 ++- charts/argo-rollouts/templates/dashboard/deployment.yaml | 3 ++- charts/argo-rollouts/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/charts/argo-rollouts/Chart.yaml b/charts/argo-rollouts/Chart.yaml index ef6fd97d..83e75ad3 100644 --- a/charts/argo-rollouts/Chart.yaml +++ b/charts/argo-rollouts/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "v1.2.0" description: A Helm chart for Argo Rollouts name: argo-rollouts -version: 2.14.0 +version: 2.14.1 icon: https://argoproj.github.io/argo-rollouts/assets/logo.png home: https://github.com/argoproj/argo-helm maintainers: @@ -11,4 +11,4 @@ maintainers: - name: jessesuen annotations: artifacthub.io/changes: | - - "[Added]: ability to define priorityClassName for the controller and dashboard" + - "[Added]: option to set dashboard replicas count" diff --git a/charts/argo-rollouts/README.md b/charts/argo-rollouts/README.md index 54806e67..47386dad 100644 --- a/charts/argo-rollouts/README.md +++ b/charts/argo-rollouts/README.md @@ -111,6 +111,7 @@ If dashboard is installed by `--set dashboard.enabled=true`, checkout the argo-r | dashboard.nodeSelector | object | `{}` | [Node selector] | | dashboard.podSecurityContext | object | `{"runAsNonRoot":true}` | Security Context to set on pod level | | dashboard.priorityClassName | string | `""` | [priorityClassName] for the dashboard server | +| dashboard.replicas | int | `1` | The number of dashboard pods to run | | dashboard.resources | object | `{}` | Resource limits and requests for the dashboard pods. | | dashboard.service.annotations | object | `{}` | Service annotations | | dashboard.service.externalIPs | list | `[]` | Dashboard service external IPs | @@ -156,4 +157,4 @@ Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/ [probe]: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes [Tolerations]: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ [priorityClassName]: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ -[values.yaml]: https://github.com/argoproj/argo-helm/blob/argo-rollouts-2.14.0/charts/argo-rollouts/values.yaml +[values.yaml]: https://github.com/argoproj/argo-helm/blob/argo-rollouts-2.14.1/charts/argo-rollouts/values.yaml diff --git a/charts/argo-rollouts/templates/dashboard/deployment.yaml b/charts/argo-rollouts/templates/dashboard/deployment.yaml index e45f1acf..33310ef5 100644 --- a/charts/argo-rollouts/templates/dashboard/deployment.yaml +++ b/charts/argo-rollouts/templates/dashboard/deployment.yaml @@ -13,6 +13,7 @@ spec: app.kubernetes.io/component: {{ .Values.dashboard.component }} strategy: type: Recreate + replicas: {{ .Values.dashboard.replicas }} template: metadata: {{- with .Values.podAnnotations }} @@ -63,4 +64,4 @@ spec: {{- with .Values.dashboard.priorityClassName }} priorityClassName: {{ . }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/argo-rollouts/values.yaml b/charts/argo-rollouts/values.yaml index b5c9f576..c9ec9a99 100644 --- a/charts/argo-rollouts/values.yaml +++ b/charts/argo-rollouts/values.yaml @@ -148,6 +148,8 @@ dashboard: affinity: {} # -- [priorityClassName] for the dashboard server priorityClassName: "" + # -- The number of dashboard pods to run + replicas: 1 image: # -- Registry to use registry: quay.io