From 06dfa87f1c761f9b030ff1d54de1f11344810147 Mon Sep 17 00:00:00 2001 From: Blake Devcich Date: Mon, 9 Oct 2023 12:10:33 -0500 Subject: [PATCH] Added support for int-test operator Signed-off-by: Blake Devcich --- config/rbac/role.yaml | 26 ++++++++++++++++++++++++++ controllers/datamovement_controller.go | 3 +++ 2 files changed, 29 insertions(+) diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 59f1bab4..6022c1bd 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -136,6 +136,32 @@ rules: - patch - update - watch +- apiGroups: + - nnf.cray.hpe.com + resources: + - inttesthelpers + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - nnf.cray.hpe.com + resources: + - inttesthelpers/finalizers + verbs: + - update +- apiGroups: + - nnf.cray.hpe.com + resources: + - inttesthelpers/status + verbs: + - get + - patch + - update - apiGroups: - nnf.cray.hpe.com resources: diff --git a/controllers/datamovement_controller.go b/controllers/datamovement_controller.go index 403b64e1..07e87ce2 100644 --- a/controllers/datamovement_controller.go +++ b/controllers/datamovement_controller.go @@ -127,6 +127,9 @@ func (i *invalidError) Unwrap() error { return i.err } //+kubebuilder:rbac:groups=nnf.cray.hpe.com,resources=nnfdatamovements/status,verbs=get;update;patch //+kubebuilder:rbac:groups=nnf.cray.hpe.com,resources=nnfdatamovements/finalizers,verbs=update //+kubebuilder:rbac:groups=nnf.cray.hpe.com,resources=nnfstorages,verbs=get;list;watch +//+kubebuilder:rbac:groups=nnf.cray.hpe.com,resources=inttesthelpers,verbs=get;list;watch;create;update;patch;delete +//+kubebuilder:rbac:groups=nnf.cray.hpe.com,resources=inttesthelpers/status,verbs=get;update;patch +//+kubebuilder:rbac:groups=nnf.cray.hpe.com,resources=inttesthelpers/finalizers,verbs=update //+kubebuilder:rbac:groups=dataworkflowservices.github.io,resources=clientmounts,verbs=get;list //+kubebuilder:rbac:groups=dataworkflowservices.github.io,resources=clientmounts/status,verbs=get;list //+kubebuilder:rbac:groups=lus.cray.hpe.com,resources=lustrefilesystems,verbs=get;list;watch