diff --git a/README.md b/README.md index d9487fa..1de205d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ If `.Values.image.rootless: true`, then the following will occur. In case you us | `enabled` | Create an act runner StatefulSet. | `false` | | `init.image.repository` | The image used for the init containers | `busybox` | | `init.image.tag` | The image tag used for the init containers | `1.37.0` | +| `statefulset.replicas` | the amount of (replica) runner pods deployed | `1` | | `statefulset.annotations` | Act runner annotations | `{}` | | `statefulset.labels` | Act runner labels | `{}` | | `statefulset.resources` | Act runner resources | `{}` | diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index d65db12..6c33e0b 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -16,6 +16,7 @@ metadata: name: {{ include "gitea.actions.fullname" . }}-act-runner namespace: {{ .Values.namespace | default .Release.Namespace }} spec: + replicas: {{ .Values.statefulset.replicas | default 1 }} selector: matchLabels: {{- include "gitea.actions.selectorLabels.actRunner" . | nindent 6 }} diff --git a/values.yaml b/values.yaml index ab97400..687fdb8 100644 --- a/values.yaml +++ b/values.yaml @@ -5,6 +5,7 @@ ## @param enabled Create an act runner StatefulSet. ## @param init.image.repository The image used for the init containers ## @param init.image.tag The image tag used for the init containers +## @param statefulset.replicas the amount of (replica) runner pods deployed ## @param statefulset.annotations Act runner annotations ## @param statefulset.labels Act runner labels ## @param statefulset.resources Act runner resources @@ -39,6 +40,7 @@ ## @param giteaRootURL URL the act_runner registers and connect with enabled: false statefulset: + replicas: 1 annotations: {} labels: {} resources: {}