-
Notifications
You must be signed in to change notification settings - Fork 809
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
Install offline Helm Chart for a multi-cluster #3897
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. 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 @@
## master #3897 +/- ##
==========================================
- Coverage 38.61% 38.61% -0.01%
==========================================
Files 167 167
Lines 13729 13749 +20
==========================================
+ Hits 5302 5309 +7
- Misses 7998 8006 +8
- Partials 429 434 +5
... and 9 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
/cc @STRRL |
Hi @nioshield , thanks for your contribution! Awesome patch! I am going to review it soon. |
@@ -189,7 +189,7 @@ func (r *Reconciler) ensureHelmRelease(ctx context.Context, obj *v1alpha1.Remote | |||
_, err = helmClient.GetRelease(obj.Spec.Namespace, chaosMeshReleaseName) | |||
if err != nil { | |||
if errors.Is(err, driver.ErrReleaseNotFound) { | |||
chart, err := helm.FetchChaosMeshChart(ctx, chaosMeshReleaseVersion) | |||
chart, err := helm.FetchChaosMeshChart(ctx, obj.Spec.Version, config.ControllerCfg.LocalHelmChartPath) |
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.
The logic about fetching Status.CurrentVersion
needs updates.
Fields in Status
means the observed status by the controller, it should NOT be setup by simply copying the value from Spec.Version
.
What about making a refactor on helm.FetchChaosMeshChart
, derive 2 method like:
- helm.FetchChaosMeshChartFromRepository(ctx context.Context, version string) (chart, version ,err)
- helm.FetchChaosMeshChartFromLocal(ctx context.Context, helmChartPath string) (chart, version ,err)
then setup the Status.CurrentVersion
with the returned version
value.
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.
@STRRL fixed according to comments. PTAL |
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!
also, please fix the DCO check
Signed-off-by: nio <nioshield@gmail.com>
Signed-off-by: nio <nioshield@gmail.com>
Signed-off-by: STRRL <im@strrl.dev> Signed-off-by: nio <nioshield@gmail.com>
* Update install.sh to work on macos The default bash version on MacOS does not support reading an array directly from a variable. Instead, use `read -a` to accomplish separating version numbers. Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com> * chore: update changelog Signed-off-by: STRRL <im@strrl.dev> --------- Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com> Signed-off-by: STRRL <im@strrl.dev> Co-authored-by: STRRL <im@strrl.dev> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io> Signed-off-by: nio <nioshield@gmail.com>
* update chaos-coredns version to v0.2.4 Signed-off-by: Xianglin Gao <xianglingao@tencent.com> * update chaos-coredns version to v0.2.4 Signed-off-by: Xianglin Gao <xianglingao@tencent.com> --------- Signed-off-by: Xianglin Gao <xianglingao@tencent.com> Signed-off-by: nio <nioshield@gmail.com>
This reverts commit b031d88. Signed-off-by: nio <nioshield@gmail.com>
* chore: init Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * test: add jest-dom types Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: add @mui/base Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: types Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: update Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: clear yarn usage Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: update changelog Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: update storyshots Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: downgrade react-testing-library Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: @ui/app tests Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: unknown unsafe-perm Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> --------- Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> Signed-off-by: nio <nioshield@gmail.com>
* upgrade dns coredns image url to ghcr.io Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * add CHANGELOG Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * replace pingcap project with chaos-mesh Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * add back docker-push-dns-server Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * chore: bump the version of chaos-coredns to v0.2.2 Signed-off-by: STRRL <im@strrl.dev> * update Makefile Signed-off-by: Cwen Yin <cwenyin0@gmail.com> * chore: bump coredns image version to 0.2.4 Signed-off-by: STRRL <im@strrl.dev> * test: use latest image Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: follow sonatype-lift suggestions Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: update chaos-coredns to v0.2.5 Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: changelog Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: typo Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: update dnsServer.image Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: remove pingcap Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: typo Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: add ghcr.io registry Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * Rename ChaosDNSImage to ChaosCoreDNSImage Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * feat: bump chaos-coredns version to v0.2.6, and enable dnsServer.create as default Signed-off-by: STRRL <im@strrl.dev> * chore: update the helm chart configs Signed-off-by: STRRL <im@strrl.dev> * chore: make check Signed-off-by: STRRL <im@strrl.dev> --------- Signed-off-by: YangKeao <yangkeao@chunibyo.icu> Signed-off-by: STRRL <im@strrl.dev> Signed-off-by: Cwen Yin <cwenyin0@gmail.com> Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io> Co-authored-by: STRRL <im@strrl.dev> Co-authored-by: Cwen Yin <cwenyin0@gmail.com> Co-authored-by: Yue Yang <g1enyy0ung@gmail.com> Signed-off-by: nio <nioshield@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> Signed-off-by: nio <nioshield@gmail.com>
Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com> Signed-off-by: nio <nioshield@gmail.com>
Co-authored-by: Zhou Zhiqiang <im@strrl.dev> Signed-off-by: nio <nioshield@gmail.com>
/merge |
/lgtm |
/approve |
1 similar comment
/approve |
/lgtm |
/lgtm |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: g1eny0ung, STRRL The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Supplement docs in chaos-mesh/website@ba2b18d. |
What problem does this PR solve?
Install the specified version Helm Chart offline to multiple clusters
What's changed and how it works?
Related changes
UI interface
Checklist
CHANGELOG
CHANGELOG.md
Tests
Side effects
DCO
If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it: