mirror of
https://github.com/nikdoof/helm-charts.git
synced 2025-12-14 05:52:17 +00:00
* Import nfs-client-provisioner from helm/stable repo * Update chart testing * Correct testing
20 lines
654 B
YAML
20 lines
654 B
YAML
{{- if .Values.rbac.create }}
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
labels:
|
|
app: {{ template "nfs-client-provisioner.name" . }}
|
|
chart: {{ template "nfs-client-provisioner.chart" . }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
name: run-{{ template "nfs-client-provisioner.fullname" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "nfs-client-provisioner.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: {{ template "nfs-client-provisioner.fullname" . }}-runner
|
|
apiGroup: rbac.authorization.k8s.io
|
|
{{- end }}
|