github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/gateways/templates/serviceaccount.yaml (about)

     1  {{- range $key, $spec := .Values }}
     2  {{- if and (ne $key "global") (ne $key "enabled") }}
     3  {{- if $spec.enabled }}
     4  apiVersion: v1
     5  kind: ServiceAccount
     6  {{- if $.Values.global.imagePullSecrets }}
     7  imagePullSecrets:
     8  {{- range $.Values.global.imagePullSecrets }}
     9    - name: {{ . }}
    10  {{- end }}
    11  {{- end }}
    12  metadata:
    13    name: {{ $key }}-service-account
    14    namespace: {{ $spec.namespace | default $.Release.Namespace }}
    15    labels:
    16      app: {{ $spec.labels.istio }}
    17      chart: {{ $.Chart.Name }}-{{ $.Chart.Version }}
    18      heritage: {{ $.Release.Service }}
    19      release: {{ $.Release.Name }}
    20  ---
    21  {{- end }}
    22  {{- end }}
    23  {{- end }}