23 lines
768 B
YAML
23 lines
768 B
YAML
|
{{- $serverEnabled := (or (and (ne (.Values.server.enabled | toString) "-") .Values.server.enabled) (and (eq (.Values.server.enabled | toString) "-") .Values.global.enabled)) -}}
|
||
|
{{- if (or $serverEnabled .Values.externalServers.enabled) }}
|
||
|
{{- if .Values.global.acls.manageSystemACLs }}
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: {{ template "consul.fullname" . }}-server-acl-init
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
app: {{ template "consul.name" . }}
|
||
|
chart: {{ template "consul.chart" . }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
release: {{ .Release.Name }}
|
||
|
component: server-acl-init
|
||
|
{{- with .Values.global.imagePullSecrets }}
|
||
|
imagePullSecrets:
|
||
|
{{- range . }}
|
||
|
- name: {{ .name }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|