Skip to content

Commit

Permalink
Merge pull request #2126 from ks-ci-bot/cherry-pick-2122-to-release-3.3
Browse files Browse the repository at this point in the history
[release-3.3] Delete clusterRoles
  • Loading branch information
pixiake authored Oct 13, 2022
2 parents 1e01d1d + d603317 commit fdd06e5
Showing 1 changed file with 2 additions and 83 deletions.
85 changes: 2 additions & 83 deletions roles/ks-core/prepare/files/ks-init/role-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ metadata:
iam.kubesphere.io/dependencies: '["role-template-view-project-resources", "role-template-view-projects"]'
iam.kubesphere.io/module: Project Resources Management
kubesphere.io/alias-name: Project Resources Management
iam.kubesphere.io/role-template-rules: '{"deployments": "manage", "statefulsets": "manage", "daemonsets": "manage", "jobs": "manage", "cronjobs": "manage", "pods": "manage", "services": "manage", "ingresses": "manage"}'
iam.kubesphere.io/role-template-rules: '{"deployments": "manage", "statefulsets": "manage", "daemonsets": "manage", "jobs": "manage", "cronjobs": "manage", "pods": "manage", "services": "manage", "ingresses": "manage", "serviceaccounts": "manage", "secrets": "manage", "configmaps": "manage"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-manage-project-resources
Expand Down Expand Up @@ -1933,7 +1933,7 @@ metadata:
iam.kubesphere.io/dependencies: '["role-template-view-projects"]'
iam.kubesphere.io/module: Project Resources Management
kubesphere.io/alias-name: Project Resources View
iam.kubesphere.io/role-template-rules: '{"deployments": "view", "statefulsets": "view", "daemonsets": "view", "jobs": "view", "cronjobs": "view", "pods": "view", "services": "view", "ingresses": "view"}'
iam.kubesphere.io/role-template-rules: '{"deployments": "view", "statefulsets": "view", "daemonsets": "view", "jobs": "view", "cronjobs": "view", "pods": "view", "services": "view", "ingresses": "view", "serviceaccounts": "view", "secrets": "view", "configmaps": "view"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-view-project-resources
Expand Down Expand Up @@ -2113,87 +2113,6 @@ metadata:
name: role-template-view-volumes
rules: []

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
iam.kubesphere.io/module: Configration Management
kubesphere.io/alias-name: ConfigMap View
iam.kubesphere.io/role-template-rules: '{"configmaps": "view"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-view-configmaps
rules: []

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
iam.kubesphere.io/dependencies: '["role-template-view-configmaps"]'
iam.kubesphere.io/module: Configration Management
kubesphere.io/alias-name: ConfigMap Management
iam.kubesphere.io/role-template-rules: '{"configmaps": "manage"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-manage-configmaps
rules: []

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
iam.kubesphere.io/module: Configration Management
kubesphere.io/alias-name: Secret View
iam.kubesphere.io/role-template-rules: '{"secrets": "view"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-view-secrets
rules: []

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
iam.kubesphere.io/dependencies: '["role-template-view-secrets"]'
iam.kubesphere.io/module: Configration Management
kubesphere.io/alias-name: Secret Management
iam.kubesphere.io/role-template-rules: '{"secrets": "manage"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-manage-secrets
rules: []

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
iam.kubesphere.io/module: Configration Management
kubesphere.io/alias-name: ServiceAccount View
iam.kubesphere.io/role-template-rules: '{"serviceaccounts": "view"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-view-service-accounts
rules: []

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
iam.kubesphere.io/dependencies: '["role-template-view-service-accounts"]'
iam.kubesphere.io/module: Configration Management
kubesphere.io/alias-name: ServiceAccount Management
iam.kubesphere.io/role-template-rules: '{"serviceaccounts": "manage"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-manage-service-accounts
rules: []

---
apiVersion: iam.kubesphere.io/v1alpha2
kind: RoleBase
Expand Down

0 comments on commit fdd06e5

Please sign in to comment.