From 3ef0b03d95b4197492c3ad62833fbb08765a90bf Mon Sep 17 00:00:00 2001 From: Borja Lopez Date: Mon, 24 May 2021 08:17:32 +0200 Subject: [PATCH] fix: Remove the need to install the clusterrole if you don't need the controller --- .../templates/controller-serviceaccount.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/aws-efs-csi-driver/templates/controller-serviceaccount.yaml b/charts/aws-efs-csi-driver/templates/controller-serviceaccount.yaml index 5a08044e8..11fc70596 100644 --- a/charts/aws-efs-csi-driver/templates/controller-serviceaccount.yaml +++ b/charts/aws-efs-csi-driver/templates/controller-serviceaccount.yaml @@ -11,7 +11,7 @@ metadata: {{- end }} {{- end }} --- - +{{- if .Values.controller.create }} kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: @@ -57,3 +57,4 @@ roleRef: kind: ClusterRole name: efs-csi-external-provisioner-role apiGroup: rbac.authorization.k8s.io +{{- end }}