mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-04-05 09:10:46 +00:00
chore: support preinit and postinit container like the helm-gitea
This commit is contained in:
@ -30,9 +30,13 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
restartPolicy: Always
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.statefulset.securityContext | nindent 8 }}
|
{{- toYaml .Values.statefulset.securityContext | nindent 8 }}
|
||||||
initContainers:
|
initContainers:
|
||||||
|
{{- if .Values.preExtraInitContainers }}
|
||||||
|
{{- toYaml .Values.preExtraInitContainers | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
- name: init-gitea
|
- name: init-gitea
|
||||||
image: "{{ include "gitea.actions.init.image" . }}"
|
image: "{{ include "gitea.actions.init.image" . }}"
|
||||||
command:
|
command:
|
||||||
@ -83,7 +87,9 @@ spec:
|
|||||||
{{- with .Values.statefulset.dind.extraVolumeMounts }}
|
{{- with .Values.statefulset.dind.extraVolumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
restartPolicy: Always
|
{{- if .Values.postExtraInitContainers }}
|
||||||
|
{{- toYaml .Values.postExtraInitContainers | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: act-runner
|
- name: act-runner
|
||||||
image: "{{ include "gitea.actions.actRunner.image" . }}"
|
image: "{{ include "gitea.actions.actRunner.image" . }}"
|
||||||
|
|||||||
18
values.yaml
18
values.yaml
@ -116,11 +116,23 @@ init:
|
|||||||
|
|
||||||
## Specify an existing token secret
|
## Specify an existing token secret
|
||||||
##
|
##
|
||||||
existingSecret: ""
|
existingSecret: "secret"
|
||||||
existingSecretKey: ""
|
existingSecretKey: "key"
|
||||||
|
|
||||||
## Specify the root URL of the Gitea instance
|
## Specify the root URL of the Gitea instance
|
||||||
giteaRootURL: ""
|
giteaRootURL: "gitea.com"
|
||||||
|
|
||||||
|
## @param preExtraInitContainers Additional init containers to run in the pod before gitea-actions runs it owns init containers.
|
||||||
|
preExtraInitContainers: []
|
||||||
|
# - name: pre-init-container
|
||||||
|
# image: docker.io/library/busybox
|
||||||
|
# command: [ /bin/sh, -c, 'echo "Hello world! I am a pre init container."' ]
|
||||||
|
|
||||||
|
## @param postExtraInitContainers Additional init containers to run in the pod after gitea-actions runs it owns init containers.
|
||||||
|
postExtraInitContainers: []
|
||||||
|
# - name: post-init-container
|
||||||
|
# image: docker.io/library/busybox
|
||||||
|
# command: [ /bin/sh, -c, 'echo "Hello world! I am a post init container."' ]
|
||||||
|
|
||||||
## @section Global
|
## @section Global
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user