-
Notifications
You must be signed in to change notification settings - Fork 810
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(StressChaos): containerNames problem #2245
Conversation
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov Report
@@ Coverage Diff @@
## release-2.0 #2245 +/- ##
==============================================
Coverage ? 42.88%
==============================================
Files ? 128
Lines ? 8854
Branches ? 0
==============================================
Hits ? 3797
Misses ? 4728
Partials ? 329 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -373,16 +373,13 @@ func (s *Service) createStressChaos(exp *core.ExperimentInfo, kubeCli client.Cli | |||
Mode: v1alpha1.PodMode(exp.Scope.Mode), | |||
Value: exp.Scope.Value, | |||
}, | |||
ContainerNames: exp.Target.StressChaos.ContainerNames, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Panic here if exp.Target.StressChaos.CintainerName
is nil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be an empty array because of the omitempty
option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 4144958
|
/run-e2e-test |
When this fix will be available? |
@Muscule v2.0.1 included this fix. You can upgrade to v2.0.1 |
Signed-off-by: Yue Yang g1enyy0ung@gmail.com
What problem does this PR solve?
Unify the
containerNames
field on front-end and back-end.What is changed and how it works?
Proposal: xxx
What's Changed:
Related changes
chaos-mesh/website
/chaos-mesh/website-zh
:Checklist
Tests
Side effects
Release note