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

change ads->kernel-native and workload->duel-engine in code #940

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

LiZhenCheng9527
Copy link
Collaborator

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #937

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@hzxuzhonghu
Copy link
Member

What is the conclusion from community meeting?

@LiZhenCheng9527
Copy link
Collaborator Author

Change the name of the constant first, and the name of the API later.

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 53.57143% with 13 lines in your changes missing coverage. Please review.

Project coverage is 54.44%. Comparing base (ef71fe9) to head (373584c).
Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
pkg/bpf/bpf.go 42.85% 0 Missing and 4 partials ⚠️
pkg/controller/controller.go 0.00% 3 Missing ⚠️
pkg/cni/install.go 0.00% 2 Missing ⚠️
pkg/logger/logger.go 0.00% 2 Missing ⚠️
pkg/cni/plugin/plugin.go 0.00% 1 Missing ⚠️
pkg/controller/config/config.go 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
pkg/controller/ads/ads_processor.go 76.40% <100.00%> (ø)
pkg/controller/client.go 65.43% <100.00%> (ø)
pkg/controller/manage/manage_controller.go 52.86% <100.00%> (-2.21%) ⬇️
pkg/controller/workload/workload_processor.go 61.76% <100.00%> (ø)
pkg/cni/plugin/plugin.go 0.00% <0.00%> (ø)
pkg/controller/config/config.go 63.46% <0.00%> (ø)
pkg/cni/install.go 36.50% <0.00%> (ø)
pkg/logger/logger.go 40.25% <0.00%> (ø)
pkg/controller/controller.go 0.00% <0.00%> (ø)
pkg/bpf/bpf.go 48.02% <42.85%> (+4.42%) ⬆️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99e0c0c...373584c. Read the comment docs.

@LiZhenCheng9527
Copy link
Collaborator Author

I think changing the functions name can be a good first issue.
New developers can through this to learn about Kmesh's function capabilities.

@tacslon
Copy link
Contributor

tacslon commented Oct 10, 2024

There is a typo that duel -> dual

ctl/dump/dump.go Outdated
# Workload mode:
kmeshctl dump <kmesh-daemon-pod> workload`,
# Duel Engine mode:
kmeshctl dump <kmesh-daemon-pod> duel-engine`,
Copy link
Member

Choose a reason for hiding this comment

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

typo

ctl/dump/dump.go Outdated
@@ -54,8 +54,8 @@ kmeshctl dump <kmesh-daemon-pod> workload`,
func RunDump(cmd *cobra.Command, args []string) error {
podName := args[0]
mode := args[1]
if mode != "ads" && mode != "workload" {
log.Errorf("Error: Argument must be 'ads' or 'workload'")
if mode != "kernel-native" && mode != "duel-engine" {
Copy link
Member

Choose a reason for hiding this comment

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

can define a const instead of hardcoding

@@ -7,7 +7,7 @@ deploy:
tag: latest
imagePullPolicy: IfNotPresent
containers:
kmeshDaemonArgs: "--mode=workload --enable-bypass=false --enable-bpf-log=true"
kmeshDaemonArgs: "--mode=duel-engine --enable-bypass=false --enable-bpf-log=true"
Copy link
Member

Choose a reason for hiding this comment

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

typo

Signed-off-by: LiZhenCheng9527 <[email protected]>
Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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

@kmesh-bot kmesh-bot merged commit 49b2cbe into kmesh-net:main Oct 12, 2024
9 checks passed
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.

Replace ads and workload in the code
4 participants