From 765d90211e54926bceaf23d0398c2268e2db5a0e Mon Sep 17 00:00:00 2001 From: larat7 Date: Wed, 27 Sep 2023 21:44:16 -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 87725ad6f0..0996d07ea3 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"]