From 4b6909f87bf4983514e6a58897010ea00589e855 Mon Sep 17 00:00:00 2001 From: Blake Devcich Date: Wed, 8 Nov 2023 11:52:43 -0600 Subject: [PATCH] renamed rbac and added nnf_ --- config/rbac/datamovement_editor_role.yaml | 24 ------------------- config/rbac/datamovement_viewer_role.yaml | 20 ---------------- .../rbac/datamovementmanager_editor_role.yaml | 24 ------------------- .../rbac/datamovementmanager_viewer_role.yaml | 20 ---------------- .../datamovementworkflow_editor_role.yaml | 24 ------------------- .../datamovementworkflow_viewer_role.yaml | 20 ---------------- config/rbac/nnfdatamovement_editor_role.yaml | 24 +++++++++++++++++++ config/rbac/nnfdatamovement_viwer_role.yaml | 20 ++++++++++++++++ .../nnfdatamovementmanager_editor_role.yaml | 24 +++++++++++++++++++ .../nnfdatamovementmanager_viewer_role.yaml | 20 ++++++++++++++++ 10 files changed, 88 insertions(+), 132 deletions(-) delete mode 100644 config/rbac/datamovement_editor_role.yaml delete mode 100644 config/rbac/datamovement_viewer_role.yaml delete mode 100644 config/rbac/datamovementmanager_editor_role.yaml delete mode 100644 config/rbac/datamovementmanager_viewer_role.yaml delete mode 100644 config/rbac/datamovementworkflow_editor_role.yaml delete mode 100644 config/rbac/datamovementworkflow_viewer_role.yaml create mode 100644 config/rbac/nnfdatamovement_editor_role.yaml create mode 100644 config/rbac/nnfdatamovement_viwer_role.yaml create mode 100644 config/rbac/nnfdatamovementmanager_editor_role.yaml create mode 100644 config/rbac/nnfdatamovementmanager_viewer_role.yaml diff --git a/config/rbac/datamovement_editor_role.yaml b/config/rbac/datamovement_editor_role.yaml deleted file mode 100644 index eeee29dd0..000000000 --- a/config/rbac/datamovement_editor_role.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# permissions for end users to edit datamovements. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: datamovement-editor-role -rules: -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovements - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovements/status - verbs: - - get diff --git a/config/rbac/datamovement_viewer_role.yaml b/config/rbac/datamovement_viewer_role.yaml deleted file mode 100644 index 0d408426f..000000000 --- a/config/rbac/datamovement_viewer_role.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# permissions for end users to view datamovements. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: datamovement-viewer-role -rules: -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovements - verbs: - - get - - list - - watch -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovements/status - verbs: - - get diff --git a/config/rbac/datamovementmanager_editor_role.yaml b/config/rbac/datamovementmanager_editor_role.yaml deleted file mode 100644 index a60380576..000000000 --- a/config/rbac/datamovementmanager_editor_role.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# permissions for end users to edit datamovementmanagers. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: datamovementmanager-editor-role -rules: -- apiGroups: - - dm.cray.hpe.com - resources: - - datamovementmanagers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - dm.cray.hpe.com - resources: - - datamovementmanagers/status - verbs: - - get diff --git a/config/rbac/datamovementmanager_viewer_role.yaml b/config/rbac/datamovementmanager_viewer_role.yaml deleted file mode 100644 index bc480999c..000000000 --- a/config/rbac/datamovementmanager_viewer_role.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# permissions for end users to view datamovementmanagers. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: datamovementmanager-viewer-role -rules: -- apiGroups: - - dm.cray.hpe.com - resources: - - datamovementmanagers - verbs: - - get - - list - - watch -- apiGroups: - - dm.cray.hpe.com - resources: - - datamovementmanagers/status - verbs: - - get diff --git a/config/rbac/datamovementworkflow_editor_role.yaml b/config/rbac/datamovementworkflow_editor_role.yaml deleted file mode 100644 index c5da2f7df..000000000 --- a/config/rbac/datamovementworkflow_editor_role.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# permissions for end users to edit datamovementworkflows. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: datamovementworkflow-editor-role -rules: -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovementworkflows - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovementworkflows/status - verbs: - - get diff --git a/config/rbac/datamovementworkflow_viewer_role.yaml b/config/rbac/datamovementworkflow_viewer_role.yaml deleted file mode 100644 index 27c55d30c..000000000 --- a/config/rbac/datamovementworkflow_viewer_role.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# permissions for end users to view datamovementworkflows. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: datamovementworkflow-viewer-role -rules: -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovementworkflows - verbs: - - get - - list - - watch -- apiGroups: - - nnf.cray.hpe.com - resources: - - datamovementworkflows/status - verbs: - - get diff --git a/config/rbac/nnfdatamovement_editor_role.yaml b/config/rbac/nnfdatamovement_editor_role.yaml new file mode 100644 index 000000000..06e6bab4a --- /dev/null +++ b/config/rbac/nnfdatamovement_editor_role.yaml @@ -0,0 +1,24 @@ +# permissions for end users to edit nnfdatamovements. +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: nnfdatamovement-editor-role +rules: + - apiGroups: + - nnf.cray.hpe.com + resources: + - nnfdatamovements + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - nnf.cray.hpe.com + resources: + - nnfdatamovements/status + verbs: + - get diff --git a/config/rbac/nnfdatamovement_viwer_role.yaml b/config/rbac/nnfdatamovement_viwer_role.yaml new file mode 100644 index 000000000..b5375b518 --- /dev/null +++ b/config/rbac/nnfdatamovement_viwer_role.yaml @@ -0,0 +1,20 @@ +# permissions for end users to view nnfdatamovements. +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: nnfdatamovement-viewer-role +rules: + - apiGroups: + - nnf.cray.hpe.com + resources: + - nnfdatamovements + verbs: + - get + - list + - watch + - apiGroups: + - nnf.cray.hpe.com + resources: + - nnfdatamovements/status + verbs: + - get diff --git a/config/rbac/nnfdatamovementmanager_editor_role.yaml b/config/rbac/nnfdatamovementmanager_editor_role.yaml new file mode 100644 index 000000000..76659608f --- /dev/null +++ b/config/rbac/nnfdatamovementmanager_editor_role.yaml @@ -0,0 +1,24 @@ +# permissions for end users to edit nnfdatamovementmanagers. +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: nnfdatamovementmanager-editor-role +rules: + - apiGroups: + - dm.cray.hpe.com + resources: + - nnfdatamovementmanagers + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - dm.cray.hpe.com + resources: + - nnfdatamovementmanagers/status + verbs: + - get diff --git a/config/rbac/nnfdatamovementmanager_viewer_role.yaml b/config/rbac/nnfdatamovementmanager_viewer_role.yaml new file mode 100644 index 000000000..db527f599 --- /dev/null +++ b/config/rbac/nnfdatamovementmanager_viewer_role.yaml @@ -0,0 +1,20 @@ +# permissions for end users to view nnfdatamovementmanagers. +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: nnfdatamovementmanager-viewer-role +rules: + - apiGroups: + - dm.cray.hpe.com + resources: + - nnfdatamovementmanagers + verbs: + - get + - list + - watch + - apiGroups: + - dm.cray.hpe.com + resources: + - nnfdatamovementmanagers/status + verbs: + - get