You've already forked helm-actions
							
							chore: add templates, unittests and workflows
This commit is contained in:
		
							
								
								
									
										15
									
								
								templates/01-consistency-checks.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								templates/01-consistency-checks.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
{{- if .Values.actions.enabled -}}
 | 
			
		||||
    {{- if .Values.actions.provisioning.enabled -}}
 | 
			
		||||
        {{- if not (and .Values.persistence.enabled .Values.persistence.mount) -}}
 | 
			
		||||
            {{- fail "persistence.enabled and persistence.mount are required when provisioning is enabled" -}}
 | 
			
		||||
        {{- end -}}
 | 
			
		||||
        {{- if and .Values.persistence.enabled .Values.persistence.mount -}}
 | 
			
		||||
            {{- if .Values.actions.existingSecret -}}
 | 
			
		||||
                {{- fail "Can't specify both actions.provisioning.enabled and actions.existingSecret" -}}
 | 
			
		||||
            {{- end -}}
 | 
			
		||||
        {{- end -}}
 | 
			
		||||
    {{- end -}}
 | 
			
		||||
    {{- if and (not .Values.actions.provisioning.enabled) (or (empty .Values.actions.existingSecret) (empty .Values.actions.existingSecretKey)) -}}
 | 
			
		||||
        {{- fail "actions.existingSecret and actions.existingSecretKey are required when provisioning is disabled" -}}
 | 
			
		||||
    {{- end -}}
 | 
			
		||||
{{- end -}}
 | 
			
		||||
							
								
								
									
										15
									
								
								templates/config-act-runner.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								templates/config-act-runner.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: ConfigMap
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ include "gitea.fullname" . }}-act-runner-config
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels" . | nindent 4 }}
 | 
			
		||||
data:
 | 
			
		||||
  config.yaml: |
 | 
			
		||||
    {{- with .Values.actions.statefulset.actRunner.config -}}
 | 
			
		||||
    {{ . | nindent 4}}
 | 
			
		||||
    {{- end -}}
 | 
			
		||||
{{- end }}
 | 
			
		||||
							
								
								
									
										14
									
								
								templates/config-scripts.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								templates/config-scripts.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
{{- if and (and .Values.actions.provisioning.enabled .Values.persistence.enabled) .Values.persistence.mount }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: ConfigMap
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ include "gitea.fullname" . }}-scripts
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels" . | nindent 4 }}
 | 
			
		||||
data:
 | 
			
		||||
{{ (.Files.Glob "scripts/act_runner/*.sh").AsConfig | indent 2 }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
							
								
								
									
										115
									
								
								templates/job.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								templates/job.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,115 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
{{- if and (and .Values.actions.provisioning.enabled .Values.persistence.enabled) .Values.persistence.mount }}
 | 
			
		||||
{{- $name := include "gitea.workername" (dict "global" . "worker" "actions-token-job") }}
 | 
			
		||||
{{- $secretName := include "gitea.workername" (dict "global" . "worker" "actions-token") }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: batch/v1
 | 
			
		||||
kind: Job
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ $name }}
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels" . | nindent 4 }}
 | 
			
		||||
    {{- with .Values.actions.provisioning.labels }}
 | 
			
		||||
    {{- toYaml . | nindent 4 }}
 | 
			
		||||
    {{- end }}
 | 
			
		||||
    app.kubernetes.io/component: token-job
 | 
			
		||||
  annotations:
 | 
			
		||||
    {{- with .Values.actions.provisioning.annotations }}
 | 
			
		||||
    {{- toYaml . | nindent 4 }}
 | 
			
		||||
    {{- end }}
 | 
			
		||||
spec:
 | 
			
		||||
  ttlSecondsAfterFinished: {{ .Values.actions.provisioning.ttlSecondsAfterFinished }}
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      labels:
 | 
			
		||||
        {{- include "gitea.labels" . | nindent 8 }}
 | 
			
		||||
        {{- with .Values.actions.provisioning.labels }}
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
        {{- end }}
 | 
			
		||||
        app.kubernetes.io/component: token-job
 | 
			
		||||
    spec:
 | 
			
		||||
      initContainers:
 | 
			
		||||
        - name: init-gitea
 | 
			
		||||
          image: "{{ .Values.actions.init.image.repository }}:{{ .Values.actions.init.image.tag }}"
 | 
			
		||||
          command:
 | 
			
		||||
            - sh
 | 
			
		||||
            - -c
 | 
			
		||||
            - |
 | 
			
		||||
              while ! nc -z {{ include "gitea.fullname" . }}-http {{ .Values.service.http.port }}; do
 | 
			
		||||
                sleep 5
 | 
			
		||||
              done
 | 
			
		||||
      containers:
 | 
			
		||||
        - name: actions-token-create
 | 
			
		||||
          image: "{{ include "gitea.image" . }}"
 | 
			
		||||
          imagePullPolicy: {{ .Values.image.pullPolicy }}
 | 
			
		||||
          env:
 | 
			
		||||
            - name: GITEA_APP_INI
 | 
			
		||||
              value: /data/gitea/conf/app.ini
 | 
			
		||||
          command:
 | 
			
		||||
            - sh
 | 
			
		||||
            - -c
 | 
			
		||||
            - |
 | 
			
		||||
              echo "Generating act_runner token via 'gitea actions generate-runner-token'..."
 | 
			
		||||
              mkdir -p /data/actions/
 | 
			
		||||
              gitea actions generate-runner-token | grep -E '^.{40}$' | tr -d '\n' > /data/actions/token
 | 
			
		||||
          resources:
 | 
			
		||||
            {{- toYaml .Values.actions.provisioning.resources | nindent 12 }}
 | 
			
		||||
          volumeMounts:
 | 
			
		||||
            - name: data
 | 
			
		||||
              mountPath: /data
 | 
			
		||||
              {{- if .Values.persistence.subPath }}
 | 
			
		||||
              subPath: {{ .Values.persistence.subPath }}
 | 
			
		||||
              {{- end }}
 | 
			
		||||
        - name: actions-token-upload
 | 
			
		||||
          image: "{{ .Values.actions.provisioning.publish.repository }}:{{ .Values.actions.provisioning.publish.tag }}"
 | 
			
		||||
          imagePullPolicy: {{ .Values.actions.provisioning.publish.pullPolicy }}
 | 
			
		||||
          env:
 | 
			
		||||
            - name: SECRET_NAME
 | 
			
		||||
              value: {{ $secretName }}
 | 
			
		||||
          command:
 | 
			
		||||
            - sh
 | 
			
		||||
            - -c
 | 
			
		||||
            - |
 | 
			
		||||
              printf "Checking rights to update kubernetes act_runner secret..."
 | 
			
		||||
              kubectl auth can-i update secret/${SECRET_NAME}
 | 
			
		||||
              /scripts/token.sh
 | 
			
		||||
          resources:
 | 
			
		||||
            {{- toYaml .Values.actions.provisioning.resources | nindent 12 }}
 | 
			
		||||
          volumeMounts:
 | 
			
		||||
            - mountPath: /scripts
 | 
			
		||||
              name: scripts
 | 
			
		||||
              readOnly: true
 | 
			
		||||
            - mountPath: /data
 | 
			
		||||
              name: data
 | 
			
		||||
              readOnly: true
 | 
			
		||||
              {{- if .Values.persistence.subPath }}
 | 
			
		||||
              subPath: {{ .Values.persistence.subPath }}
 | 
			
		||||
              {{- end }}
 | 
			
		||||
      {{- range $key, $value := .Values.actions.provisioning.nodeSelector }}
 | 
			
		||||
      nodeSelector:
 | 
			
		||||
        {{ $key }}: {{ $value | quote }}
 | 
			
		||||
      {{- end }}
 | 
			
		||||
      {{- with .Values.actions.provisioning.affinity }}
 | 
			
		||||
      affinity:
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
      {{- end }}
 | 
			
		||||
      {{- with .Values.actions.provisioning.tolerations }}
 | 
			
		||||
      tolerations:
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
      {{- end }}
 | 
			
		||||
      restartPolicy: Never
 | 
			
		||||
      serviceAccount: {{ $name }}
 | 
			
		||||
      volumes:
 | 
			
		||||
        - name: scripts
 | 
			
		||||
          configMap:
 | 
			
		||||
            name: {{ include "gitea.fullname" . }}-scripts
 | 
			
		||||
            defaultMode: 0755
 | 
			
		||||
        - name: data
 | 
			
		||||
          persistentVolumeClaim:
 | 
			
		||||
            claimName: {{ .Values.persistence.claimName }}
 | 
			
		||||
  parallelism: 1
 | 
			
		||||
  completions: 1
 | 
			
		||||
  backoffLimit: 1
 | 
			
		||||
{{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
							
								
								
									
										26
									
								
								templates/role-job.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								templates/role-job.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
{{- if and (and .Values.actions.provisioning.enabled .Values.persistence.enabled) .Values.persistence.mount }}
 | 
			
		||||
{{- $name := include "gitea.workername" (dict "global" . "worker" "actions-token-job") }}
 | 
			
		||||
{{- $secretName := include "gitea.workername" (dict "global" . "worker" "actions-token") }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: rbac.authorization.k8s.io/v1
 | 
			
		||||
kind: Role
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ $name }}
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels" . | nindent 4 }}
 | 
			
		||||
    app.kubernetes.io/component: token-job
 | 
			
		||||
rules:
 | 
			
		||||
  - apiGroups:
 | 
			
		||||
      - ""
 | 
			
		||||
    resources:
 | 
			
		||||
      - secrets
 | 
			
		||||
    resourceNames:
 | 
			
		||||
      - {{ $secretName }}
 | 
			
		||||
    verbs:
 | 
			
		||||
      - get
 | 
			
		||||
      - update
 | 
			
		||||
      - patch
 | 
			
		||||
{{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
							
								
								
									
										23
									
								
								templates/rolebinding-job.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								templates/rolebinding-job.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
{{- if and (and .Values.actions.provisioning.enabled .Values.persistence.enabled) .Values.persistence.mount }}
 | 
			
		||||
{{- $name := include "gitea.workername" (dict "global" . "worker" "actions-token-job") }}
 | 
			
		||||
{{- $secretName := include "gitea.workername" (dict "global" . "worker" "actions-token") }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: rbac.authorization.k8s.io/v1
 | 
			
		||||
kind: RoleBinding
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ $name }}
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels" . | nindent 4 }}
 | 
			
		||||
    app.kubernetes.io/component: token-job
 | 
			
		||||
roleRef:
 | 
			
		||||
  apiGroup: rbac.authorization.k8s.io
 | 
			
		||||
  kind: Role
 | 
			
		||||
  name: {{ $name }}
 | 
			
		||||
subjects:
 | 
			
		||||
  - kind: ServiceAccount
 | 
			
		||||
    name: {{ $name }}
 | 
			
		||||
    namespace: {{ .Release.Namespace }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
							
								
								
									
										20
									
								
								templates/secret-token.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/secret-token.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
{{- if and (and .Values.actions.provisioning.enabled .Values.persistence.enabled) .Values.persistence.mount }}
 | 
			
		||||
{{- $name := include "gitea.workername" (dict "global" . "worker" "actions-token-job") }}
 | 
			
		||||
{{- $secretName := include "gitea.workername" (dict "global" . "worker" "actions-token") }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Secret
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ $secretName }}
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels" . | nindent 4 }}
 | 
			
		||||
    app.kubernetes.io/component: token-job
 | 
			
		||||
{{ $secret := (lookup "v1" "Secret" .Release.Namespace $secretName) -}}
 | 
			
		||||
{{ if $secret -}}
 | 
			
		||||
data:
 | 
			
		||||
  token: {{ (b64dec (index $secret.data "token")) | b64enc }}
 | 
			
		||||
{{ end -}}
 | 
			
		||||
{{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
							
								
								
									
										14
									
								
								templates/serviceaccount-job.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								templates/serviceaccount-job.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
{{- if and (and .Values.actions.provisioning.enabled .Values.persistence.enabled) .Values.persistence.mount }}
 | 
			
		||||
{{- $name := include "gitea.workername" (dict "global" . "worker" "actions-token-job") }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: ServiceAccount
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ $name }}
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels" . | nindent 4 }}
 | 
			
		||||
    app.kubernetes.io/component: token-job
 | 
			
		||||
{{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
							
								
								
									
										129
									
								
								templates/statefulset.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										129
									
								
								templates/statefulset.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,129 @@
 | 
			
		||||
{{- if .Values.actions.enabled }}
 | 
			
		||||
{{- $secretName := include "gitea.workername" (dict "global" . "worker" "actions-token") }}
 | 
			
		||||
---
 | 
			
		||||
apiVersion: apps/v1
 | 
			
		||||
kind: StatefulSet
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
    {{- include "gitea.labels.actRunner" . | nindent 4 }}
 | 
			
		||||
    {{- with .Values.actions.statefulset.labels }}
 | 
			
		||||
    {{- toYaml . | nindent 4 }}
 | 
			
		||||
    {{- end }}
 | 
			
		||||
  annotations:
 | 
			
		||||
    {{- with .Values.actions.statefulset.annotations }}
 | 
			
		||||
    {{- toYaml . | nindent 4 }}
 | 
			
		||||
    {{- end }}
 | 
			
		||||
  name: {{ include "gitea.fullname" . }}-act-runner
 | 
			
		||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
			
		||||
spec:
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      {{- include "gitea.selectorLabels.actRunner" . | nindent 6 }}
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      annotations:
 | 
			
		||||
        checksum/config: {{ include (print $.Template.BasePath "/gitea/act_runner/config-act-runner.yaml") . | sha256sum }}
 | 
			
		||||
      labels:
 | 
			
		||||
        {{- include "gitea.labels.actRunner" . | nindent 8 }}
 | 
			
		||||
        {{- with .Values.actions.statefulset.labels }}
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
        {{- end }}
 | 
			
		||||
    spec:
 | 
			
		||||
      initContainers:
 | 
			
		||||
        - name: init-gitea
 | 
			
		||||
          image: "{{ .Values.actions.init.image.repository }}:{{ .Values.actions.init.image.tag }}"
 | 
			
		||||
          command:
 | 
			
		||||
            - sh
 | 
			
		||||
            - -c
 | 
			
		||||
            - |
 | 
			
		||||
              while ! nc -z {{ include "gitea.fullname" . }}-http {{ .Values.service.http.port }}; do
 | 
			
		||||
                sleep 5
 | 
			
		||||
              done
 | 
			
		||||
      containers:
 | 
			
		||||
        - name: act-runner
 | 
			
		||||
          image: "{{ .Values.actions.statefulset.actRunner.repository }}:{{ .Values.actions.statefulset.actRunner.tag }}"
 | 
			
		||||
          imagePullPolicy: {{ .Values.actions.statefulset.actRunner.pullPolicy }}
 | 
			
		||||
          workingDir: /data
 | 
			
		||||
          env:
 | 
			
		||||
            - name: DOCKER_HOST
 | 
			
		||||
              value: tcp://127.0.0.1:2376
 | 
			
		||||
            - name: DOCKER_TLS_VERIFY
 | 
			
		||||
              value: "1"
 | 
			
		||||
            - name: DOCKER_CERT_PATH
 | 
			
		||||
              value: /certs/server
 | 
			
		||||
            - name: GITEA_RUNNER_REGISTRATION_TOKEN
 | 
			
		||||
              valueFrom:
 | 
			
		||||
                secretKeyRef:
 | 
			
		||||
                  name: "{{ .Values.actions.existingSecret | default $secretName }}"
 | 
			
		||||
                  key: "{{ .Values.actions.existingSecretKey | default "token" }}"
 | 
			
		||||
            - name: GITEA_INSTANCE_URL
 | 
			
		||||
              value: {{ include "gitea.act_runner.local_root_url" . }}
 | 
			
		||||
            - name: CONFIG_FILE
 | 
			
		||||
              value: /actrunner/config.yaml
 | 
			
		||||
          resources:
 | 
			
		||||
            {{- toYaml .Values.actions.statefulset.resources | nindent 12 }}
 | 
			
		||||
          volumeMounts:
 | 
			
		||||
            - mountPath: /actrunner/config.yaml
 | 
			
		||||
              name: act-runner-config
 | 
			
		||||
              subPath: config.yaml
 | 
			
		||||
            - mountPath: /certs/server
 | 
			
		||||
              name: docker-certs
 | 
			
		||||
            - mountPath: /data
 | 
			
		||||
              name: data-act-runner
 | 
			
		||||
            {{- with .Values.actions.statefulset.actRunner.extraVolumeMounts }}
 | 
			
		||||
            {{- toYaml . | nindent 12 }}
 | 
			
		||||
            {{- end }}
 | 
			
		||||
        - name: dind
 | 
			
		||||
          image: "{{ .Values.actions.statefulset.dind.repository }}:{{ .Values.actions.statefulset.dind.tag }}"
 | 
			
		||||
          imagePullPolicy: {{ .Values.actions.statefulset.dind.pullPolicy }}
 | 
			
		||||
          env:
 | 
			
		||||
            - name: DOCKER_HOST
 | 
			
		||||
              value: tcp://127.0.0.1:2376
 | 
			
		||||
            - name: DOCKER_TLS_VERIFY
 | 
			
		||||
              value: "1"
 | 
			
		||||
            - name: DOCKER_CERT_PATH
 | 
			
		||||
              value: /certs/server
 | 
			
		||||
            {{- if .Values.actions.statefulset.dind.extraEnvs }}
 | 
			
		||||
            {{- toYaml .Values.actions.statefulset.dind.extraEnvs | nindent 12 }}
 | 
			
		||||
            {{- end }}
 | 
			
		||||
          securityContext:
 | 
			
		||||
            privileged: true
 | 
			
		||||
          resources:
 | 
			
		||||
            {{- toYaml .Values.actions.statefulset.resources | nindent 12 }}
 | 
			
		||||
          volumeMounts:
 | 
			
		||||
            - mountPath: /certs/server
 | 
			
		||||
              name: docker-certs
 | 
			
		||||
            {{- with .Values.actions.statefulset.dind.extraVolumeMounts }}
 | 
			
		||||
            {{- toYaml . | nindent 12 }}
 | 
			
		||||
            {{- end }}
 | 
			
		||||
      {{- range $key, $value := .Values.actions.statefulset.nodeSelector }}
 | 
			
		||||
      nodeSelector:
 | 
			
		||||
        {{ $key }}: {{ $value | quote }}
 | 
			
		||||
      {{- end }}
 | 
			
		||||
      {{- with .Values.actions.statefulset.affinity }}
 | 
			
		||||
      affinity:
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
      {{- end }}
 | 
			
		||||
      {{- with .Values.actions.statefulset.tolerations }}
 | 
			
		||||
      tolerations:
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
      {{- end }}
 | 
			
		||||
      volumes:
 | 
			
		||||
        - name: act-runner-config
 | 
			
		||||
          configMap:
 | 
			
		||||
            name: {{ include "gitea.fullname" . }}-act-runner-config
 | 
			
		||||
        - name: docker-certs
 | 
			
		||||
          emptyDir: {}
 | 
			
		||||
        {{- with .Values.actions.statefulset.extraVolumes }}
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
        {{- end }}
 | 
			
		||||
  volumeClaimTemplates:
 | 
			
		||||
    - metadata:
 | 
			
		||||
        name: data-act-runner
 | 
			
		||||
      spec:
 | 
			
		||||
        accessModes: [ "ReadWriteOnce" ]
 | 
			
		||||
        {{- include "gitea.persistence.storageClass" . | nindent 8 }}
 | 
			
		||||
        resources:
 | 
			
		||||
          requests:
 | 
			
		||||
            storage: 1Mi
 | 
			
		||||
{{- end }}
 | 
			
		||||
		Reference in New Issue
	
	Block a user