Skip to content

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

Merged
kmesh-bot merged 2 commits intokmesh-net:mainfrom
LiZhenCheng9527:change-mode
Oct 12, 2024
Merged

change ads->kernel-native and workload->duel-engine in code#940
kmesh-bot merged 2 commits intokmesh-net:mainfrom
LiZhenCheng9527:change-mode

Conversation

@LiZhenCheng9527
Copy link
Copy Markdown
Contributor

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?:


Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
@hzxuzhonghu
Copy link
Copy Markdown
Member

What is the conclusion from community meeting?

@LiZhenCheng9527
Copy link
Copy Markdown
Contributor Author

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

@codecov
Copy link
Copy Markdown

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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
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
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
Copy Markdown
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

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
Copy Markdown
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 <lizhencheng6@huawei.com>
Copy link
Copy Markdown
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
Copy Markdown
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

Details 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
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