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

Allow hack/local-up-karmada.sh to use latest pre-built images #5627

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

chaosi-zju
Copy link
Member

@chaosi-zju chaosi-zju commented Sep 30, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

supports specifying whether need making local images in local up installation

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
Usage:

# BUILD_FROM_SOURCE=false hack/local-up-karmada.sh

Does this PR introduce a user-facing change?:

NONE

…allation

Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
@karmada-bot karmada-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 30, 2024
@karmada-bot karmada-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 30, 2024
kind load docker-image "${REGISTRY}/karmada-aggregated-apiserver:${VERSION}" --name="${HOST_CLUSTER_NAME}"
kind load docker-image "${REGISTRY}/karmada-search:${VERSION}" --name="${HOST_CLUSTER_NAME}"
kind load docker-image "${REGISTRY}/karmada-metrics-adapter:${VERSION}" --name="${HOST_CLUSTER_NAME}"
if [[ "${BUILD_FROM_SOURCE}" == "true" ]]; then
Copy link
Member Author

Choose a reason for hiding this comment

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

I wander if I can update this line to if [[ "${BUILD_FROM_SOURCE}" != "false" ]] when judge whether need kind load

@RainbowMango

Copy link
Member

Choose a reason for hiding this comment

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

I think we should try to avoid double-negative confusion.

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.19%. Comparing base (58612d3) to head (ab134ca).
Report is 6 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    #5627      +/-   ##
==========================================
- Coverage   35.20%   35.19%   -0.01%     
==========================================
  Files         645      645              
  Lines       44869    44869              
==========================================
- Hits        15795    15791       -4     
- Misses      27844    27847       +3     
- Partials     1230     1231       +1     
Flag Coverage Δ
unittests 35.19% <ø> (-0.01%) ⬇️

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.

@RainbowMango
Copy link
Member

/retitle Allow hack/local-up-karmada.sh to use latest pre-built images

@karmada-bot karmada-bot changed the title supports specifying whether need making local images in local up installation Allow hack/local-up-karmada.sh to use latest pre-built images Sep 30, 2024
@RainbowMango
Copy link
Member

The hack/local-up-karmada.sh script currently builds Karmada component images from source code by default.

This PR introduces an option to allow the script to use the published latest images directly, bypassing the build process. This change will significantly reduce the setup time for local environments and provide convenience for users who do not need frequent updates to their codebase.

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.

/lgtm
/approve

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2024
@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 Sep 30, 2024
@karmada-bot karmada-bot merged commit 8cc712f into karmada-io:master Sep 30, 2024
12 checks passed
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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants