2023-04-10 13:14:24 +00:00
|
|
|
{{/*
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/}}
|
|
|
|
|
2022-10-18 08:13:05 +00:00
|
|
|
{{- template "vault.injectorEnabled" . -}}
|
|
|
|
{{- if .injectorEnabled -}}
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: {{ template "vault.fullname" . }}-agent-injector-binding
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: {{ include "vault.name" . }}-agent-injector
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: {{ template "vault.fullname" . }}-agent-injector-clusterrole
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: {{ template "vault.fullname" . }}-agent-injector
|
2023-10-31 13:41:58 +00:00
|
|
|
namespace: {{ include "vault.namespace" . }}
|
2022-10-18 08:13:05 +00:00
|
|
|
{{ end }}
|