first commit
This commit is contained in:
13
templates/valkey/serviceaccount.yaml
Normal file
13
templates/valkey/serviceaccount.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- if and (eq (include "valkey.internal.sa.enabled" .) "true") (not .Values.valkey.internal.serviceAccount.preexisting) }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "valkey.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "valkey.labels" . | nindent 4 }}
|
||||
{{- with .Values.valkey.internal.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
automountServiceAccountToken: {{ .Values.valkey.internal.serviceAccount.automountServiceAccountToken }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user