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

Add tests for deploying Karmada services using the configuration file with the karmadactl init --config command.(closed) #5744

Closed
wants to merge 1 commit into from

Conversation

tiansuo114
Copy link
Contributor

@tiansuo114 tiansuo114 commented Oct 25, 2024

What type of PR is this?

What this PR does / why we need it:
This PR is an additional test, based on the suggestion provided in url.
Which issue(s) this PR fixes:
Part of #5387
It adds test cases for deploying Karmada services using the karmadactl init --config command with a configuration file, similar to the existing tests for karmadactl init.

Special notes for your reviewer:
@liangyuanpeng
@RainbowMango

This PR currently contains two commits because the test files depend on the new feature for deploying with a configuration file, introduced in #5357. Once that PR is merged, this PR will be rebased, retaining only the commit for adding test cases. However, to save time, it is being submitted for review in advance.

Does this PR introduce a user-facing change?:


@liangyuanpeng
Copy link
Contributor

Hi, this is a bot comment, just put the label of ok-to-test here, you can comment /retest to rerun github workflow if github workflow is failing and it's not releated with this PR.

/ok-to-test

@karmada-bot karmada-bot added ok-to-test size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 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 41.68%. Comparing base (9754a28) to head (82d1825).
Report is 4 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    #5744      +/-   ##
==========================================
+ Coverage   41.64%   41.68%   +0.03%     
==========================================
  Files         653      653              
  Lines       55484    55533      +49     
==========================================
+ Hits        23109    23147      +38     
- Misses      30876    30885       +9     
- Partials     1499     1501       +2     
Flag Coverage Δ
unittests 41.68% <ø> (+0.03%) ⬆️

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.

@karmada-bot karmada-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 26, 2024
@tiansuo114
Copy link
Contributor Author

Since the PR for adding features has been merged, the commit history in this PR is now normal, so we can proceed with the review and merging correctly.

@liangyuanpeng @RainbowMango

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.

/assign

@RainbowMango
Copy link
Member

Ping @liangyuanpeng to review.

Copy link
Contributor

@liangyuanpeng liangyuanpeng left a comment

Choose a reason for hiding this comment

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

/assign

-e "s|\${VERSION}|${VERSION}|g" \
-e "s|\${HOME}|${HOME}|g")

echo "$filled_config" > $CONFIG_FILE_PATH
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "$filled_config" > $CONFIG_FILE_PATH
echo "${filled_config}" > ${CONFIG_FILE_PATH}


echo "$filled_config" > $CONFIG_FILE_PATH

echo "Karmada init config file generated at $CONFIG_FILE_PATH"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "Karmada init config file generated at $CONFIG_FILE_PATH"
echo "Karmada init config file generated at ${CONFIG_FILE_PATH}"

apiVersion: config.karmada.io/v1alpha1
kind: KarmadaInitConfig
metadata:
name: karmada-init
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like this is unnecessarily.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that the information in the metadata is redundant. In the current karmadactl system, the data in the metadata is indeed unnecessary. I have already removed the related data items and addressed the issues mentioned in other comments. If my understanding is incorrect or if additional issues are identified, I hope you can let me know. I look forward to your further guidance.

Signed-off-by: tiansuo114 <[email protected]>

11

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from liangyuanpeng. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@tiansuo114
Copy link
Contributor Author

Based on the OSPP project's requirements, the content of this PR has been moved to this pr, and this PR will be closed.

@liangyuanpeng @RainbowMango

@tiansuo114 tiansuo114 closed this Oct 28, 2024
@tiansuo114 tiansuo114 changed the title Add tests for deploying Karmada services using the configuration file with the karmadactl init --config command. Add tests for deploying Karmada services using the configuration file with the karmadactl init --config command.(closed) Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test 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.

5 participants