mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-27 14:37:17 +00:00
Extended Helm chart configuration to allow imagePullSecrets to be defined either as a list of strings (e.g., `- my-pull-secret`) or as a list of objects with `name` keys (e.g., `- name: my-pull-secret`).
28 lines
1.0 KiB
YAML
28 lines
1.0 KiB
YAML
{{- if .Values.reloader.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
{{- if .Values.global.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{ include "reloader-imagePullSecrets" . | indent 2 }}
|
|
{{- end }}
|
|
{{- if hasKey .Values.reloader.serviceAccount "automountServiceAccountToken" }}
|
|
automountServiceAccountToken: {{ .Values.reloader.serviceAccount.automountServiceAccountToken }}
|
|
{{- end }}
|
|
metadata:
|
|
annotations:
|
|
{{ include "reloader-helm3.annotations" . | indent 4 }}
|
|
{{- if .Values.reloader.serviceAccount.annotations }}
|
|
{{ tpl (toYaml .Values.reloader.serviceAccount.annotations) . | indent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
|
{{- if .Values.reloader.serviceAccount.labels }}
|
|
{{ tpl (toYaml .Values.reloader.serviceAccount.labels) . | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.reloader.matchLabels }}
|
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
|
{{- end }}
|
|
name: {{ template "reloader-serviceAccountName" . }}
|
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
|
{{- end }}
|