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

helm install karmada components in order #5010

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

chaosi-zju
Copy link
Member

What type of PR is this?

/kind feature
/kind flake

What this PR does / why we need it:

helm install karmada components in order, for detailed discussion, see issue #4917

Which issue(s) this PR fixes:

Fixes #4917

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@karmada-bot karmada-bot added kind/feature Categorizes issue or PR as related to a new feature. kind/flake Categorizes issue or PR as related to a flaky test. labels Jun 1, 2024
@karmada-bot karmada-bot requested review from jrkeen and Poor12 June 1, 2024 13:14
@karmada-bot karmada-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 1, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.30%. Comparing base (c181917) to head (01ec281).
Report is 2 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5010      +/-   ##
==========================================
- Coverage   53.32%   53.30%   -0.02%     
==========================================
  Files         253      253              
  Lines       20560    20560              
==========================================
- Hits        10964    10960       -4     
- Misses       8870     8875       +5     
+ Partials      726      725       -1     
Flag Coverage Δ
unittests 53.30% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chaosi-zju chaosi-zju force-pushed the helm branch 2 times, most recently from 706ffed to a66dcf1 Compare June 1, 2024 14:08
@calvin0327
Copy link

/assign

charts/karmada/values.yaml Outdated Show resolved Hide resolved
charts/karmada/values.yaml Outdated Show resolved Hide resolved
charts/karmada/templates/post-install-job.yaml Outdated Show resolved Hide resolved
@chaosi-zju
Copy link
Member Author

chaosi-zju commented Jun 3, 2024

Now, our Chart Lint test CI just only runs 3 minutes, while previously need almost 17 minute because components restart for many times.

This means the installation time of helm method will be greatly shortened, and users who use helm method will get greatly improved installation experience.

previous:
image

now:
image

@liangyuanpeng
Copy link
Contributor

Now, our Chart Lint test CI just only runs 3 minutes, while previously need almost 17 minute because compnonets restart for many times.

it's a big promote!

@chaosi-zju
Copy link
Member Author

CC @RainbowMango

@calvin0327
Copy link

/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 4, 2024
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

@a7i Can you help to take a look?
The issue we are trying to address is that the components launched by Helm don't have a solid order, which will lead to components crashing during the installation, such as karmada-controller-manager crashes if it starts before the karmada-apiserver.

The approach of this PR is trying to add an init container to the components if it reply on others. I'm not sure if this is the best practice for Helm chart dealing with many components.

Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/approve

@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 12, 2024
@karmada-bot karmada-bot merged commit 2ad9cbb into karmada-io:master Jun 12, 2024
12 checks passed
@a7i
Copy link
Contributor

a7i commented Jun 12, 2024

@RainbowMango apologies for the delay in my response as I was traveling for work.

I reviewed the linked Issue and the approach here makes sense. Additionally, in my organization, we don't use Helm so the solution proposed addresses it in a generic fashion that works for all.

Thank you @chaosi-zju for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. kind/flake Categorizes issue or PR as related to a flaky test. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flaking Test] chart-lint-test not stable recently
7 participants