From 3599193c1d87f1921a45f008a81567346d916089 Mon Sep 17 00:00:00 2001 From: Lara Araujo Date: Wed, 27 Sep 2023 18:28:14 -0700 Subject: [PATCH] ebs br: add create pv permissions to operator --- charts/tidb-operator/templates/controller-manager-rbac.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/tidb-operator/templates/controller-manager-rbac.yaml b/charts/tidb-operator/templates/controller-manager-rbac.yaml index 87725ad6f0b..0996d07ea36 100644 --- a/charts/tidb-operator/templates/controller-manager-rbac.yaml +++ b/charts/tidb-operator/templates/controller-manager-rbac.yaml @@ -143,7 +143,7 @@ rules: {{- if (eq (include "controller-manager.cluster-permissions.persistentvolumes" . | trim) "true") }} - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "patch","update"] + verbs: ["create", "get", "list", "watch", "patch", "update"] {{- end }} {{- if (eq (include "controller-manager.cluster-permissions.storageclasses" . | trim) "true") }} - apiGroups: ["storage.k8s.io"]