Skip to content

Commit

Permalink
*: Fix dashboard's token generation RBAC YAML (#3370)
Browse files Browse the repository at this point in the history
* perf: make the Scope render conditionally (#3622)

* perf: make the Scope render conditionally

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: update  changelog

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: STRRL <im@strrl.dev>

* fix apiGroup chaos-mesh.org in token generation

Signed-off-by: Garima Negi <garima.negi@segment.com>
Signed-off-by: STRRL <im@strrl.dev>

* fix integration tests for apiGroup chaos-mesh.orgs

Signed-off-by: Garima Negi <garima.negi@segment.com>
Signed-off-by: STRRL <im@strrl.dev>

* update CHANGELOG.md

Signed-off-by: STRRL <im@strrl.dev>

* chore: move changelog entry to unreleased section

Signed-off-by: STRRL <im@strrl.dev>

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: Garima Negi <garima.negi@segment.com>
Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Co-authored-by: STRRL <im@strrl.dev>
  • Loading branch information
4 people committed Sep 14, 2022
1 parent 9c3f63a commit b936e80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ For more information and how-to, see [RFC: Keep A Changelog](https://github.com/
- Change e2e config settings to append "pause image" args. [#3567](https://github.com/chaos-mesh/chaos-mesh/pull/3567)
- Update display of disabled scope in UI [#3621](https://github.com/chaos-mesh/chaos-mesh/pull/3621)
- Make the Scope render conditionally [#3622](https://github.com/chaos-mesh/chaos-mesh/pull/3622)
- Dashboard: Fix rbac.yaml for token generation verbs/resources [#3370](https://github.com/chaos-mesh/chaos-mesh/pull/3370)

### Deprecated

Expand Down
6 changes: 2 additions & 4 deletions pkg/dashboard/apiserver/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ rules:
- apiGroups: [""]
resources: ["pods", "namespaces"]
verbs: ["get", "watch", "list"]
- apiGroups:
- chaos-mesh.org
- apiGroups: ["chaos-mesh.org"]
resources: [ "*" ]
verbs: [%s]
`
Expand All @@ -71,8 +70,7 @@ rules:
- apiGroups: [""]
resources: ["pods", "namespaces"]
verbs: ["get", "watch", "list"]
- apiGroups:
- chaos-mesh.org
- apiGroups: ["chaos-mesh.org"]
resources: [ "*" ]
verbs: [%s]
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ rules:
- apiGroups: [""]
resources: ["pods", "namespaces"]
verbs: ["get", "watch", "list"]
- apiGroups:
- chaos-mesh.org
- apiGroups: ["chaos-mesh.org"]
resources: [ "*" ]
verbs:
- create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ rules:
- apiGroups: [""]
resources: ["pods", "namespaces"]
verbs: ["get", "watch", "list"]
- apiGroups:
- chaos-mesh.org
- apiGroups: ["chaos-mesh.org"]
resources: [ "*" ]
verbs:
- get
Expand Down

0 comments on commit b936e80

Please sign in to comment.