* feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> * feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> --------- Signed-off-by: ci-bot <ci-bot@kubesphere.io> Co-authored-by: ks-ci-bot <ks-ci-bot@example.com> Co-authored-by: joyceliu <joyceliu@yunify.com>
28 lines
924 B
YAML
28 lines
924 B
YAML
{{- if .Values.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ template "redis-ha.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
app: {{ template "redis-ha.fullname" . }}
|
|
{{- range $key, $value := .Values.extraLabels }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- if or .Values.auth .Values.sentinel.auth }}
|
|
secrets:
|
|
{{- end }}
|
|
{{- if .Values.auth }}
|
|
- name: {{ default (include "redis-ha.fullname" .) .Values.existingSecret }}
|
|
{{- end }}
|
|
{{- if .Values.sentinel.auth }}
|
|
- name: {{ default (printf "%s-sentinel" (include "redis-ha.fullname" .)) .Values.sentinel.existingSecret }}
|
|
{{- end }}
|
|
{{- if .Values.imagePullSecrets }}
|
|
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 0 }}
|
|
{{- end }}
|
|
{{- end }}
|