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

(Manually cherry-pick) make chaos dashboard be compliable with namespace scoped mode (#1110) #1135

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

STRRL
Copy link
Member

@STRRL STRRL commented Nov 3, 2020

Since #1127 has conflict, manually cherry-pick #1110 to release-1.0.

Here are duplicated code in pkg/apiserver/experiment/experiment.go like:

type Service struct {
	conf    *config.ChaosDashboardConfig
	kubeCli client.Client
	archive core.ExperimentStore
	event   core.EventStore
	conf    *config.ChaosDashboardConfig
}

conf *config.ChaosDashboardConfig is duplicated.

Already cleanup manually.

…mesh#1110)

* fix(dashboard): make chaos dashboard be compliable with namespace scoped mode

Signed-off-by: STRRL <str_ruiling@outlook.com>

* chore: tring to make go vet happy

Signed-off-by: STRRL <str_ruiling@outlook.com>

* chore: update install.sh

Signed-off-by: STRRL <str_ruiling@outlook.com>

* chore: reformat

Signed-off-by: STRRL <str_ruiling@outlook.com>

* improvement(dashboard): refine API, only list namespaces which could inject chaos

Signed-off-by: STRRL <str_ruiling@outlook.com>

* improvement: do not need list namespaces permission anymore

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: append missing permission about list on namespaces within cluster mode

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: change url: from namespaces to chaos-available-namespaces

Signed-off-by: STRRL <str_ruiling@outlook.com>

* improvement: keeping API: /namespaces and mark it as deprecated

Signed-off-by: STRRL <str_ruiling@outlook.com>

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
@STRRL
Copy link
Member Author

STRRL commented Nov 3, 2020

/run-all-tests

@STRRL
Copy link
Member Author

STRRL commented Nov 3, 2020

/run-e2e-tests

Copy link
Contributor

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@STRRL
Copy link
Member Author

STRRL commented Nov 3, 2020

Hi @g1eny0ung , PTAL.

@STRRL STRRL requested a review from g1eny0ung November 3, 2020 03:56
Copy link
Member

@g1eny0ung g1eny0ung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@g1eny0ung g1eny0ung merged commit 6a9c3ed into chaos-mesh:release-1.0 Nov 3, 2020
@STRRL STRRL deleted the release-1.0 branch February 23, 2021 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants