chore: add imagePullSecrets and slightly refac the statefulset

This commit is contained in:
DaanSelen
2026-03-18 10:24:25 +01:00
parent 3f2fdd9c42
commit aee0e7c216
4 changed files with 34 additions and 23 deletions

View File

@ -52,7 +52,6 @@ spec:
env:
{{- toYaml .Values.statefulset.dind.extraEnvs | nindent 12 }}
{{- end }}
restartPolicy: Always
securityContext:
privileged: true
startupProbe:
@ -75,6 +74,7 @@ spec:
{{- with .Values.statefulset.dind.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
restartPolicy: Always
containers:
- name: act-runner
image: "{{ include "gitea.actions.actRunner.image" . }}"
@ -109,6 +109,12 @@ spec:
{{- with .Values.statefulset.actRunner.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.statefulset.nodeSelector }}
nodeSelector:
{{ $key }}: {{ $value | quote }}
@ -135,7 +141,9 @@ spec:
name: data-act-runner
spec:
accessModes: [ "ReadWriteOnce" ]
{{- include "gitea.actions.persistence.storageClass" . | nindent 8 }}
{{- if .Values.global.storageClass }}
{{- include "gitea.actions.persistence.storageClass" . | indent 8 }}
{{- end }}
resources:
requests:
storage: {{ .Values.statefulset.persistence.size }}