Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the missing permission of ks-devops #1948

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion roles/ks-core/prepare/files/ks-init/role-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@ rules:
verbs:
- list
- get
- apiGroups:
- devops.kubesphere.io
resources:
- clustertemplates/render
verbs:
- create
- apiGroups:
- gitops.kubesphere.io
resources:
- clusters
verbs:
- list
- apiGroups:
- alerting.kubesphere.io
resources:
Expand Down Expand Up @@ -3181,6 +3193,8 @@ role:
- 'pipelines/consolelog'
- 'pipelines/scan'
- 'pipelines/sonarstatus'
- 'clustertemplates'
- 'clustertemplates/render'
verbs:
- '*'

Expand Down Expand Up @@ -3279,6 +3293,12 @@ role:
- 'get'
- 'list'
- 'watch'
- apiGroups:
- ''
resources:
- 'events'
verbs:
- 'list'

---
apiVersion: iam.kubesphere.io/v1alpha2
Expand Down Expand Up @@ -3306,6 +3326,12 @@ role:
- applications
verbs:
- '*'
- apiGroups:
- 'gitops.kubesphere.io'
resources:
- clusters
verbs:
- 'list'

---
apiVersion: iam.kubesphere.io/v1alpha2
Expand All @@ -3331,6 +3357,7 @@ role:
- 'gitops.kubesphere.io'
resources:
- 'applications'
- 'application-summary'
verbs:
- 'get'
- 'list'
Expand All @@ -3351,7 +3378,7 @@ role:
iam.kubesphere.io/dependencies: '["role-template-view-gitrepositories"]'
iam.kubesphere.io/module: Code Repositories Management
kubesphere.io/alias-name: Code Repositories Management
iam.kubesphere.io/role-template-rules: '{"applications": "manage"}'
iam.kubesphere.io/role-template-rules: '{"gitrepositories": "manage"}'
labels:
iam.kubesphere.io/role-template: "true"
name: role-template-manage-gitrepositories
Expand All @@ -3375,6 +3402,7 @@ role:
kind: Role
metadata:
annotations:
iam.kubesphere.io/dependencies: '["role-template-view-credentials"]'
iam.kubesphere.io/module: Code Repositories Management
kubesphere.io/alias-name: Code Repositories View
iam.kubesphere.io/role-template-rules: '{"gitrepositories": "view"}'
Expand Down Expand Up @@ -3416,6 +3444,7 @@ role:
- 'pipelineruns'
- 'pipelines/runs'
- 'pipelines/pipelineruns'
- 'pipelineruns/artifacts'
- 'pipelineruns/nodedetails'
- 'pipelineruns/status'
verbs:
Expand Down