-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include admin ClusterRole and add it to the scaffold
- Loading branch information
Showing
79 changed files
with
2,035 additions
and
57 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_admin_role.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,38 @@ | ||
# This rule is not used by the project project itself. | ||
# It is provided to allow the cluster admin to help manage permissions for users. | ||
# | ||
# Provides full permissions (create, update, delete) over all custom resource objects | ||
# for the specified API resources across the cluster. In addition to resource management, | ||
# it grants users the ability to modify roles and bindings within the cluster, | ||
# allowing them to delegate specific permissions to other users or groups as needed. | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: project | ||
app.kubernetes.io/managed-by: kustomize | ||
|
||
# Uncomment the following line if you want to aggregate these permissions to the default admin ClusterRole. | ||
# For more information, please see: | ||
# https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles | ||
# rbac.authorization.k8s.io/aggregate-to-admin: "true" | ||
name: cronjob-admin-role | ||
rules: | ||
- apiGroups: | ||
- batch.tutorial.kubebuilder.io | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- cronjobs | ||
- clusterroles | ||
- clusterrolebindings | ||
- roles | ||
- rolebindings | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- batch.tutorial.kubebuilder.io | ||
resources: | ||
- cronjobs/status | ||
verbs: | ||
- get |
14 changes: 13 additions & 1 deletion
14
docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_editor_role.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
13 changes: 12 additions & 1 deletion
13
docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_viewer_role.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
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
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
38 changes: 38 additions & 0 deletions
38
docs/book/src/getting-started/testdata/project/config/rbac/memcached_admin_role.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,38 @@ | ||
# This rule is not used by the project project itself. | ||
# It is provided to allow the cluster admin to help manage permissions for users. | ||
# | ||
# Provides full permissions (create, update, delete) over all custom resource objects | ||
# for the specified API resources across the cluster. In addition to resource management, | ||
# it grants users the ability to modify roles and bindings within the cluster, | ||
# allowing them to delegate specific permissions to other users or groups as needed. | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: project | ||
app.kubernetes.io/managed-by: kustomize | ||
|
||
# Uncomment the following line if you want to aggregate these permissions to the default admin ClusterRole. | ||
# For more information, please see: | ||
# https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles | ||
# rbac.authorization.k8s.io/aggregate-to-admin: "true" | ||
name: memcached-admin-role | ||
rules: | ||
- apiGroups: | ||
- cache.example.com | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- memcacheds | ||
- clusterroles | ||
- clusterrolebindings | ||
- roles | ||
- rolebindings | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- cache.example.com | ||
resources: | ||
- memcacheds/status | ||
verbs: | ||
- get |
14 changes: 13 additions & 1 deletion
14
docs/book/src/getting-started/testdata/project/config/rbac/memcached_editor_role.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
13 changes: 12 additions & 1 deletion
13
docs/book/src/getting-started/testdata/project/config/rbac/memcached_viewer_role.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
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
38 changes: 38 additions & 0 deletions
38
docs/book/src/multiversion-tutorial/testdata/project/config/rbac/cronjob_admin_role.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,38 @@ | ||
# This rule is not used by the project project itself. | ||
# It is provided to allow the cluster admin to help manage permissions for users. | ||
# | ||
# Provides full permissions (create, update, delete) over all custom resource objects | ||
# for the specified API resources across the cluster. In addition to resource management, | ||
# it grants users the ability to modify roles and bindings within the cluster, | ||
# allowing them to delegate specific permissions to other users or groups as needed. | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: project | ||
app.kubernetes.io/managed-by: kustomize | ||
|
||
# Uncomment the following line if you want to aggregate these permissions to the default admin ClusterRole. | ||
# For more information, please see: | ||
# https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles | ||
# rbac.authorization.k8s.io/aggregate-to-admin: "true" | ||
name: cronjob-admin-role | ||
rules: | ||
- apiGroups: | ||
- batch.tutorial.kubebuilder.io | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- cronjobs | ||
- clusterroles | ||
- clusterrolebindings | ||
- roles | ||
- rolebindings | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- batch.tutorial.kubebuilder.io | ||
resources: | ||
- cronjobs/status | ||
verbs: | ||
- get |
14 changes: 13 additions & 1 deletion
14
docs/book/src/multiversion-tutorial/testdata/project/config/rbac/cronjob_editor_role.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
13 changes: 12 additions & 1 deletion
13
docs/book/src/multiversion-tutorial/testdata/project/config/rbac/cronjob_viewer_role.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
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
Oops, something went wrong.