helm/secrets-provider/templates/role-binding.yaml
{{- if .Values.rbac.create -}}
apiVersion: {{ include "conjur.rbac-api" . }}
kind: RoleBinding
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Values.rbac.roleBindingName }}
subjects:
- kind: ServiceAccount
namespace: {{ .Release.Namespace }}
name: {{ .Values.rbac.serviceAccount.name }}
roleRef:
kind: Role
apiGroup: rbac.authorization.k8s.io
name: {{ .Values.rbac.roleName }}
{{- end }}