-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: additional cluster roles for secretproviderclasses
Adding Admin and Viewer cluster roles, aggregaring to default "admin" and "view" ClusterRoles.
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
charts/secrets-store-csi-driver/templates/role-secretproviderclasses-admin.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,25 @@ | ||
{{ if .Values.rbac.install }} | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
rbac.authorization.k8s.io/aggregate-to-admin: "true" | ||
rbac.authorization.k8s.io/aggregate-to-edit: "true" | ||
name: secretproviderclasses-admin-role | ||
rules: | ||
- apiGroups: | ||
- secrets-store.csi.x-k8s.io | ||
resources: | ||
- secretproviderclasses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
{{ end }} |
20 changes: 20 additions & 0 deletions
20
charts/secrets-store-csi-driver/templates/role-secretproviderclasses-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,20 @@ | ||
{{ if .Values.rbac.install }} | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
rbac.authorization.k8s.io/aggregate-to-view: "true" | ||
name: secretproviderclasses-viewer-role | ||
rules: | ||
- apiGroups: | ||
- secrets-store.csi.x-k8s.io | ||
resources: | ||
- secretproviderclasses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{ end }} |
25 changes: 25 additions & 0 deletions
25
...t_staging/charts/secrets-store-csi-driver/templates/role-secretproviderclasses-admin.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,25 @@ | ||
{{ if .Values.rbac.install }} | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
rbac.authorization.k8s.io/aggregate-to-admin: "true" | ||
rbac.authorization.k8s.io/aggregate-to-edit: "true" | ||
name: secretproviderclasses-admin-role | ||
rules: | ||
- apiGroups: | ||
- secrets-store.csi.x-k8s.io | ||
resources: | ||
- secretproviderclasses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
{{ end }} |
20 changes: 20 additions & 0 deletions
20
..._staging/charts/secrets-store-csi-driver/templates/role-secretproviderclasses-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,20 @@ | ||
{{ if .Values.rbac.install }} | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
rbac.authorization.k8s.io/aggregate-to-view: "true" | ||
name: secretproviderclasses-viewer-role | ||
rules: | ||
- apiGroups: | ||
- secrets-store.csi.x-k8s.io | ||
resources: | ||
- secretproviderclasses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{ end }} |