Skip to content

Commit

Permalink
Allow manager replicas to be configured via helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-ferrell authored and yorugac committed Nov 13, 2023
1 parent 696fead commit e0972fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/k6-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/k6-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/k6-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0972fa

Please sign in to comment.