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

blockchaos: api definition and selector implementation #2739

Merged
merged 15 commits into from
Jan 19, 2022

Conversation

YangKeao
Copy link
Member

What problem does this PR solve?

According to the chaos-mesh/rfcs#29 , the BlockChaos API definition and the volume path selector implementation is here 😺 .

What's changed and how it works?

chaos-mesh/rfcs#29

Document issue: #2738

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Dec 30, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Andrewmatilde
  • g1eny0ung

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@codecov
Copy link

codecov bot commented Dec 30, 2021

Codecov Report

Merging #2739 (699047f) into master (92b6be1) will increase coverage by 0.04%.
The diff coverage is 49.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2739      +/-   ##
==========================================
+ Coverage   41.03%   41.07%   +0.04%     
==========================================
  Files         144      146       +2     
  Lines       11747    11868     +121     
==========================================
+ Hits         4820     4875      +55     
- Misses       6565     6627      +62     
- Partials      362      366       +4     
Impacted Files Coverage Δ
api/v1alpha1/blockchaos_types.go 0.00% <0.00%> (ø)
api/v1alpha1/zz_generated.schedule.chaosmesh.go 0.00% <0.00%> (ø)
api/v1alpha1/zz_generated.workflow.chaosmesh.go 4.72% <0.00%> (-0.38%) ⬇️
api/v1alpha1/zz_generated.chaosmesh.go 57.98% <62.65%> (+0.35%) ⬆️
api/v1alpha1/blockchaos_webhook.go 100.00% <100.00%> (ø)
pkg/workflow/controllers/chaos_node_reconciler.go 58.16% <0.00%> (-1.44%) ⬇️

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 f771929...699047f. Read the comment docs.

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@STRRL STRRL mentioned this pull request Jan 4, 2022
51 tasks
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@YangKeao YangKeao requested a review from a team January 6, 2022 07:21
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
pkg/selector/nodevolumepath/selector.go Outdated Show resolved Hide resolved
api/v1alpha1/blockchaos_types.go Outdated Show resolved Hide resolved
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@YangKeao YangKeao marked this pull request as ready for review January 13, 2022 09:43
@YangKeao YangKeao requested a review from Hexilee January 13, 2022 09:44
@YangKeao
Copy link
Member Author

@g1eny0ung This PR also modifies the dashboard (as the CI won't pass, if I don't implement the dashboard). PTAL

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.

The frontend code LGTM.

Copy link
Member

@Andrewmatilde Andrewmatilde left a comment

Choose a reason for hiding this comment

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

LGTM

@YangKeao
Copy link
Member Author

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 49f2393

@ti-chi-bot ti-chi-bot merged commit 618a4cb into chaos-mesh:master Jan 19, 2022
rksharma95 pushed a commit to rksharma95/chaos-mesh that referenced this pull request Jan 26, 2022
* add basic type for blockchaos

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* bootstrap blockchaos and nodevolumepath selector

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* generate files from blockchaos

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* add licenses for examples

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* group the imports

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* register an unknown blockchaos

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* try to add dashboard for blockchaos

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* add webhook

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* regenerate yaml files

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* frontend implementation of blockchaos

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* make check

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: rksharma95 <nikhilrk13jan@gmail.com>
@STRRL STRRL added this to the Release 2.2 milestone Apr 15, 2022
STRRL added a commit to STRRL/chaos-mesh that referenced this pull request Apr 29, 2022
STRRL added a commit to STRRL/chaos-mesh that referenced this pull request Apr 29, 2022
STRRL added a commit to STRRL/chaos-mesh that referenced this pull request Apr 29, 2022
…-mesh#2739)"

This reverts commit 618a4cb.

Signed-off-by: STRRL <im@strrl.dev>
ti-chi-bot added a commit that referenced this pull request Apr 29, 2022
* Revert "blockchaos: api definition and selector implementation (#2739)"

This reverts commit 618a4cb.

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

* chore: revert changes on frontend

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

* chore: make check

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

* restore yarn cache

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

Co-authored-by: YangKeao <yangkeao@chunibyo.icu>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants