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

[update] add container-wise StressChaos in dashboard #794

Merged
merged 4 commits into from
Aug 11, 2020
Merged

[update] add container-wise StressChaos in dashboard #794

merged 4 commits into from
Aug 11, 2020

Conversation

fewdan
Copy link
Member

@fewdan fewdan commented Aug 7, 2020

Signed-off-by: “fewdan” fewdan@hotmail.com

What problem does this PR solve?

After #759 merged, the container name was added to the StressChaos.
This PR adds container name to the dashboard

What is changed and how does it work?

add container-wise StressChaos in dashboard

Tests

  • No code

Code changes

  • Has Go code change

Side effects

  • NO

Related changes

  • NO

Does this PR introduce a user-facing change?

NONE

Signed-off-by: “fewdan” <fewdan@hotmail.com>
@g1eny0ung g1eny0ung self-assigned this Aug 7, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #794 into master will decrease coverage by 1.97%.
The diff coverage is 33.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #794      +/-   ##
==========================================
- Coverage   55.78%   53.81%   -1.98%     
==========================================
  Files          68       71       +3     
  Lines        4383     4776     +393     
==========================================
+ Hits         2445     2570     +125     
- Misses       1768     2002     +234     
- Partials      170      204      +34     
Impacted Files Coverage Δ
api/v1alpha1/common_validation.go 100.00% <ø> (ø)
api/v1alpha1/common_webhook.go 100.00% <ø> (ø)
api/v1alpha1/iochaos_types.go 39.43% <0.00%> (-0.57%) ⬇️
api/v1alpha1/iochaos_webhook.go 93.10% <ø> (ø)
api/v1alpha1/kernelchaos_types.go 19.71% <0.00%> (-0.29%) ⬇️
api/v1alpha1/kernelchaos_webhook.go 85.18% <ø> (ø)
api/v1alpha1/kinds.go 26.66% <ø> (ø)
api/v1alpha1/networkchaos_types.go 22.83% <0.00%> (-0.15%) ⬇️
api/v1alpha1/podchaos_types.go 36.61% <0.00%> (-0.53%) ⬇️
api/v1alpha1/podchaos_webhook.go 81.96% <ø> (ø)
... and 61 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f736bc3...620b85f. Read the comment docs.

@@ -342,6 +342,10 @@ func (s *Service) createStressChaos(exp *core.ExperimentInfo) error {
chaos.Spec.Duration = &exp.Scheduler.Duration
}

if exp.Target.StressChaos.ContainerName != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to check if exp.Target.StressChaos is nil?

Copy link
Member

Choose a reason for hiding this comment

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

Seems all Create Experiment APIs should need to be checked since all ChaosInfos are pointers. 😢

We can plan a refactor for our server APIs.

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
@g1eny0ung
Copy link
Member

@cwen0 The dashboard has already followed the changes, PTAL.

@g1eny0ung g1eny0ung added this to In progress in Chaos Mesh Dashboard via automation Aug 10, 2020
Copy link
Member

@cwen0 cwen0 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
Copy link
Member

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@fewdan merge failed.

@cwen0
Copy link
Member

cwen0 commented Aug 11, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 0e6d516 into chaos-mesh:master Aug 11, 2020
Chaos Mesh Dashboard automation moved this from In progress to Done Aug 11, 2020
@fewdan fewdan deleted the container-stress branch August 11, 2020 08:26
sjwsl pushed a commit to sjwsl/chaos-mesh that referenced this pull request May 6, 2021
* update

Signed-off-by: “fewdan” <fewdan@hotmail.com>

* chore: add stress container_name in dashboard

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

Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants