-
Notifications
You must be signed in to change notification settings - Fork 805
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
feat: apply multi type of chaos nodes with code generation #1621
feat: apply multi type of chaos nodes with code generation #1621
Conversation
/hold |
Signed-off-by: STRRL <str_ruiling@outlook.com>
c05f549
to
b5a8ad9
Compare
Signed-off-by: STRRL <str_ruiling@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #1621 +/- ##
==========================================
- Coverage 55.78% 50.43% -5.35%
==========================================
Files 68 90 +22
Lines 4383 5601 +1218
==========================================
+ Hits 2445 2825 +380
- Misses 1768 2483 +715
- Partials 170 293 +123
Continue to review full report at Codecov.
|
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
3055934
to
6fe8a43
Compare
/run-e2e-tests |
/hold cancel |
I think this PR is ready for review. 😁 |
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.
rest LGTM.
@@ -51,51 +49,32 @@ func (it *ChaosNodeReconciler) Reconcile(request reconcile.Request) (reconcile.R | |||
return reconcile.Result{}, client.IgnoreNotFound(err) | |||
} | |||
|
|||
if !v1alpha1.IsChoasTemplateType(node.Spec.Type) { | |||
return reconcile.Result{}, 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.
Should we return an error here?
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.
No, this reconciler would receive events about all workflownode, even type is not Type<Some>Chaos
, and the v1alpha1.IsChoasTemplateType()
plays as a filter.
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
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
/lgtm |
Hi, as the GcpChaos has been merged #1526, this PR updates the definition of gcp chaos, so it need review again. /cc @chaos-mesh/committers |
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
/run-e2e-tests |
/lgtm cancel |
/run-e2e-tests |
/run-e2e-tests |
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
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
[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 writing |
PTAL @AsterNighT @Colstuwjx |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8af5b58
|
/lgtm |
/run-e2e-tests |
@STRRL: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: STRRL str_ruiling@outlook.com
What problem does this PR solve?
Make workflow supports all the type of chaos
What is changed and how does it work?
templateType
and the CRD Kind, reuse thechaosKindMap
EmbedChaos
bytemplateType
chaosKindMap
Checklist
Tests
Side effects
Related changes
Does this PR introduce a user-facing change?