From f87b365b940c6b808584577efac531543ba89a52 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Fri, 27 Oct 2023 14:55:59 +0530 Subject: [PATCH] Adding pv get permission. --- config/rbac/role.yaml | 1 + controllers/aerospikecluster_controller.go | 1 + .../templates/aerospike-operator-manager-clusterrole.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 9fcc1ea4f..cee5326ca 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -98,6 +98,7 @@ rules: - "" resources: - secrets + - persistentvolumes verbs: - get - apiGroups: diff --git a/controllers/aerospikecluster_controller.go b/controllers/aerospikecluster_controller.go index b00823e89..254142517 100644 --- a/controllers/aerospikecluster_controller.go +++ b/controllers/aerospikecluster_controller.go @@ -116,6 +116,7 @@ type RackState struct { // +kubebuilder:rbac:groups=core,resources=pods/exec,verbs=create // +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=core,resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=core,resources=persistentvolumes,verbs=get // +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=core,resources=secrets,verbs=get diff --git a/helm-charts/aerospike-kubernetes-operator/templates/aerospike-operator-manager-clusterrole.yaml b/helm-charts/aerospike-kubernetes-operator/templates/aerospike-operator-manager-clusterrole.yaml index c379e7f0e..3f590e368 100644 --- a/helm-charts/aerospike-kubernetes-operator/templates/aerospike-operator-manager-clusterrole.yaml +++ b/helm-charts/aerospike-kubernetes-operator/templates/aerospike-operator-manager-clusterrole.yaml @@ -102,6 +102,7 @@ rules: - "" resources: - secrets + - persistentvolumes verbs: - get - apiGroups: