openbao-helm/charts/openbao/templates/csi-serviceaccount.yaml

22 lines
686 B
YAML
Raw Permalink Normal View History

2023-02-13 16:48:20 +00:00
{{/*
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
*/}}
{{- template "openbao.csiEnabled" . -}}
{{- if .csiEnabled -}}
2021-03-19 14:14:38 +00:00
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "openbao.fullname" . }}-csi-provider
namespace: {{ include "openbao.namespace" . }}
2021-03-19 14:14:38 +00:00
labels:
app.kubernetes.io/name: {{ include "openbao.name" . }}-csi-provider
2021-03-19 14:14:38 +00:00
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.csi.serviceAccount.extraLabels -}}
{{- toYaml .Values.csi.serviceAccount.extraLabels | nindent 4 -}}
{{- end -}}
2021-03-19 14:14:38 +00:00
{{ template "csi.serviceAccount.annotations" . }}
{{- end }}