forked from K0rdent/kcm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RBAC roles associated with HMC management
Signed-off-by: Andrei Pavlov <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
templates/provider/hmc/templates/rbac/user-facing/management-editor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
11 changes: 11 additions & 0 deletions
11
templates/provider/hmc/templates/rbac/user-facing/management-viewer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
17 changes: 17 additions & 0 deletions
17
templates/provider/hmc/templates/rbac/user-facing/templatemanagement-editor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
12 changes: 12 additions & 0 deletions
12
templates/provider/hmc/templates/rbac/user-facing/templatemanagement-viewer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |