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

multicluster: support inject / recover on remote cluster #3453

Merged
merged 47 commits into from
Nov 20, 2022

Conversation

YangKeao
Copy link
Member

@YangKeao YangKeao commented Jul 14, 2022

What problem does this PR solve?

Inject / recover chaos on remote cluster

What's changed and how it works?

Documentation: chaos-mesh/website#365.

  1. Add a controller on manager cluster to synchronous create new chaos or remove old ones
  2. Add a controller for new cluster to watch the changes on remote cluster

TODO:

  1. Synchronize the status
  2. Add documents to clarify the workflow of these two controllers.

YangKeao and others added 21 commits June 8, 2022 11:25
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>
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>
…roller-manager

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
…elm-pkg

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

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 Jul 14, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • cwen0

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.


var values map[string]interface{}
if obj.Spec.ConfigOverride != nil {
err = json.Unmarshal(obj.Spec.ConfigOverride, values)
Copy link

Choose a reason for hiding this comment

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

SA1014: json.Unmarshal expects to unmarshal into a pointer, but the provided value is not a pointer

Reply with "@sonatype-lift help" for info about LiftBot commands.
Reply with "@sonatype-lift ignore" to tell LiftBot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell LiftBot to leave out all the findings from this PR and from the status bar in Github.

When talking to LiftBot, you need to refresh the page to see its response. Click here to get to know more about LiftBot commands.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
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

@cwen0
Copy link
Member

cwen0 commented Nov 20, 2022

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 4cacfa6

@STRRL
Copy link
Member

STRRL commented Nov 20, 2022

/hold

please update the changelog, it should not remove any entries.

Signed-off-by: cwen0 <cwenyin0@gmail.com>
@cwen0 cwen0 force-pushed the integrate-fingerleader-injection branch from 5e0ee97 to 2b116aa Compare November 20, 2022 12:36
@cwen0
Copy link
Member

cwen0 commented Nov 20, 2022

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 2b116aa

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #3802.

ti-chi-bot added a commit that referenced this pull request Nov 20, 2022
* add remotecluster type

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

* add the infrastructure to operate multiple clusters

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

* remove clientset

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

* modify changelog

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

* add license to the remote-cluster.yaml

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

* fix Wrapf arguments

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

* make check

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

* make the lock private

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

* chore: helm chart integration and basic interface

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

* apply remote chaos

Signed-off-by: FingerLeader <wanxfinger@gmail.com>

* chore: complete the implementation of ReleaseService

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

* chore: update changelog

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

* install chaos mesh

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

* add CHANGELOG

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

* inject successfully

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

* clear finalizer successfully

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

* add more logs

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

* chore: helm chart integration and basic interface

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

* chore: complete the implementation of ReleaseService

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

* chore: update changelog

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

* chore: fix make check

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

* chore: update lincense checker config file

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

* test: mark examples of helm as integration test

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

* add condition initialization for remote cluster

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

* upgrade chaosmesh release version to 2.4.1

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

* upgrade chaosmesh release version to 2.4.1

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

* upgrade chaosmesh release version to 2.4.1

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

* fix CI

Signed-off-by: cwen0 <cwenyin0@gmail.com>

* fix revive checks

Signed-off-by: cwen0 <cwenyin0@gmail.com>

* Run make check to format code

Signed-off-by: cwen0 <cwenyin0@gmail.com>

* fix comment controller

Signed-off-by: cwen0 <cwenyin0@gmail.com>

* update changelog

Signed-off-by: cwen0 <cwenyin0@gmail.com>

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Co-authored-by: STRRL <im@strrl.dev>
Co-authored-by: FingerLeader <wanxfinger@gmail.com>
Co-authored-by: cwen0 <cwenyin0@gmail.com>

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Co-authored-by: YangKeao <yangkeao@chunibyo.icu>
Co-authored-by: STRRL <im@strrl.dev>
Co-authored-by: FingerLeader <wanxfinger@gmail.com>
Co-authored-by: cwen0 <cwenyin0@gmail.com>
@mdnyeemakhtar
Copy link

Hello @YangKeao,

I'd greatly appreciate if I can get some information on TODO 1. Synchronize the status. Is it being done in a different PR?
Here is my more detailed question #3396 (comment)

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

7 participants