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.
Merge pull request K0rdent#331 from Mirantis/rbac
Add user-facing RBAC roles
- Loading branch information
Showing
12 changed files
with
136 additions
and
56 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
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
10 changes: 10 additions & 0 deletions
10
templates/provider/hmc/templates/rbac/user-facing/clusters-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,10 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "hmc.fullname" . }}-clusters-editor-role | ||
rules: | ||
- apiGroups: | ||
- hmc.mirantis.com | ||
resources: | ||
- managedclusters | ||
verbs: {{ include "rbac.editorVerbs" . | nindent 6 }} |
10 changes: 10 additions & 0 deletions
10
templates/provider/hmc/templates/rbac/user-facing/clusters-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,10 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "hmc.fullname" . }}-clusters-viewer-role | ||
rules: | ||
- apiGroups: | ||
- hmc.mirantis.com | ||
resources: | ||
- managedclusters | ||
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }} |
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 }} |
18 changes: 18 additions & 0 deletions
18
templates/provider/hmc/templates/rbac/user-facing/templates-creator.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,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "hmc.fullname" . }}-templates-creator-role | ||
rules: | ||
- apiGroups: | ||
- hmc.mirantis.com | ||
resources: | ||
- clustertemplates | ||
- servicetemplates | ||
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }} | ||
- create | ||
- apiGroups: | ||
- helm.toolkit.fluxcd.io | ||
resources: | ||
- helmcharts | ||
- helmrepositories | ||
verbs: {{ include "rbac.editorVerbs" . | nindent 6 }} |
17 changes: 17 additions & 0 deletions
17
templates/provider/hmc/templates/rbac/user-facing/templates-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,17 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "hmc.fullname" . }}-templates-viewer-role | ||
rules: | ||
- apiGroups: | ||
- hmc.mirantis.com | ||
resources: | ||
- clustertemplates | ||
- servicetemplates | ||
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }} | ||
- apiGroups: | ||
- helm.toolkit.fluxcd.io | ||
resources: | ||
- helmcharts | ||
- helmrepositories | ||
verbs: {{ include "rbac.viewerVerbs" . | nindent 6 }} |