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

25 lines
766 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: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "openbao.fullname" . }}-csi-provider-clusterrolebinding
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 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "openbao.fullname" . }}-csi-provider-clusterrole
2021-03-19 14:14:38 +00:00
subjects:
- kind: ServiceAccount
name: {{ template "openbao.fullname" . }}-csi-provider
namespace: {{ include "openbao.namespace" . }}
2021-03-19 14:14:38 +00:00
{{- end }}