2023-02-13 16:48:20 +00:00
|
|
|
{{/*
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/}}
|
|
|
|
|
2024-05-28 11:52:10 +00:00
|
|
|
{{ template "openbao.serverServiceAccountEnabled" . }}
|
2022-05-24 15:27:17 +00:00
|
|
|
{{- if .serverServiceAccountEnabled -}}
|
2019-07-31 18:26:12 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
2024-05-28 11:52:10 +00:00
|
|
|
name: {{ template "openbao.serviceAccount.name" . }}
|
|
|
|
namespace: {{ include "openbao.namespace" . }}
|
2019-07-31 18:26:12 +00:00
|
|
|
labels:
|
2024-05-28 11:52:10 +00:00
|
|
|
helm.sh/chart: {{ include "openbao.chart" . }}
|
|
|
|
app.kubernetes.io/name: {{ include "openbao.name" . }}
|
2019-08-07 18:55:32 +00:00
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
2022-11-03 01:01:35 +00:00
|
|
|
{{- if .Values.server.serviceAccount.extraLabels -}}
|
|
|
|
{{- toYaml .Values.server.serviceAccount.extraLabels | nindent 4 -}}
|
|
|
|
{{- end -}}
|
2024-05-28 11:52:10 +00:00
|
|
|
{{ template "openbao.serviceAccount.annotations" . }}
|
2019-07-31 18:26:12 +00:00
|
|
|
{{ end }}
|