7e2aedfdc2
fix: https://gitea.com/gitea/helm-actions/issues/142 Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/149 Reviewed-by: Nicolas <bircni@icloud.com> Co-authored-by: Daan <dselen@nerthus.nl> Co-committed-by: Daan <dselen@nerthus.nl>
20 lines
493 B
YAML
20 lines
493 B
YAML
{{- if .Values.enabled }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "gitea.actions.fullname" . }}-runner-configmap
|
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
|
labels:
|
|
{{- include "gitea.actions.labels" . | nindent 4 }}
|
|
data:
|
|
config.yaml: |
|
|
{{- with .Values.statefulset.runner.config -}}
|
|
{{- if kindIs "string" . -}}
|
|
{{ . | nindent 4}}
|
|
{{- else -}}
|
|
{{ toYaml . | nindent 4}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end }}
|