Skip to content

Commit

Permalink
Add RBAC roles associated with HMC management
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Pavlov <[email protected]>
  • Loading branch information
Kshatrix committed Sep 17, 2024
1 parent 67162e9 commit e271ed6
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "hmc.fullname" . }}-management-editor-role
rules:
- apiGroups:
- hmc.mirantis.com
resources:
- management
verbs: {{ include "rbac.editorVerbs" . | nindent 6 }}
- apiGroups:
- hmc.mirantis.com
resources:
- providertemplates
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }}
- create
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "hmc.fullname" . }}-management-viewer-role
rules:
- apiGroups:
- hmc.mirantis.com
resources:
- management
- providertemplates
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "hmc.fullname" . }}-templatemanagement-editor-role
rules:
- apiGroups:
- hmc.mirantis.com
resources:
- templatemanagements
verbs: {{ include "rbac.editorVerbs" . | nindent 6 }}
- apiGroups:
- hmc.mirantis.com
resources:
- servicetemplatechains
- clustertemplatechains
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }}
- create
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "hmc.fullname" . }}-templatemanagement-viewer-role
rules:
- apiGroups:
- hmc.mirantis.com
resources:
- templatemanagements
- clustertemplatechains
- servicetemplatechains
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }}

0 comments on commit e271ed6

Please sign in to comment.