apiVersion: auth.alauda.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
cpaas.io/description: "" ## Role description
cpaas.io/display-name: Project Manager ## Role display name
labels:
auth.cpaas.io/roletemplate.level: project ## Role level: platform, project, namespace
name: project-admin-system-copy212
spec:
customRules: ## Custom rules based on Kubernetes ClusterRole PolicyRule fields
- apiGroups: ## APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups.
- "" ## Core API group
- apps ## Apps API group
resources: ## Resources is a list of resources this rule applies to. "*" represents all resources.
- "*" ## All resources
resourceNames: ## ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. Omit this field to allow all resource names.
- "example-resource" ## Optional: specific resource names
verbs: ## Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. "*" represents all verbs. Common verbs include: get, list, watch, create, update, patch, delete, deletecollection.
- get ## Get a specific resource
- list ## List resources
- watch ## Watch resources for changes
- create ## Create new resources
- update ## Update existing resources
- patch ## Partially update resources
- delete ## Delete resources
- deletecollection ## Delete collections of resources
- apiGroups: ## Example: Additional rule for non-resource URLs (only applicable for ClusterRoles)
- ""
nonResourceURLs: ## NonResourceURLs is a set of partial urls that a user should have access to. "*" are allowed, but only as the full, final step in the path. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources or non-resource URL paths, but not both.
- "/api"
- "/api/*"
- "/apis"
- "/apis/*"
verbs:
- get
- list