From 1eb68013c6e04f9f4c2ec20ef77e1f90786fe6b9 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 13 Nov 2023 07:59:36 -0500 Subject: [PATCH] Allow manager replicas to be configured via helm chart --- charts/k6-operator/Chart.yaml | 2 +- charts/k6-operator/templates/deployment.yaml | 2 +- charts/k6-operator/values.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/k6-operator/Chart.yaml b/charts/k6-operator/Chart.yaml index 27e7963f..5d157107 100644 --- a/charts/k6-operator/Chart.yaml +++ b/charts/k6-operator/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.0.11" description: A Helm chart to install the k6-operator name: k6-operator -version: 2.0.0 +version: 3.0.0 kubeVersion: ">=1.16.0-0" home: https://k6.io sources: diff --git a/charts/k6-operator/templates/deployment.yaml b/charts/k6-operator/templates/deployment.yaml index 4fe5c5bf..97294f87 100644 --- a/charts/k6-operator/templates/deployment.yaml +++ b/charts/k6-operator/templates/deployment.yaml @@ -11,7 +11,7 @@ metadata: annotations: {{- include "k6-operator.customAnnotations" . | default "" | nindent 4 }} spec: - replicas: 1 + replicas: {{ .Values.manager.replicas }} selector: matchLabels: {{- include "k6-operator.selectorLabels" . | nindent 6 }} diff --git a/charts/k6-operator/values.yaml b/charts/k6-operator/values.yaml index db07df2c..9ce3b142 100644 --- a/charts/k6-operator/values.yaml +++ b/charts/k6-operator/values.yaml @@ -42,6 +42,8 @@ authProxy: readinessProbe: {} manager: + # manager.replicas -- number of controller-manager replicas (default: 1) + replicas: 1 serviceAccount: # manager.serviceAccount.name -- kubernetes service account for the k6 manager name: k6-operator-controller