Skip to content

kmeshctl waypoint framework#901

Merged
kmesh-bot merged 7 commits intokmesh-net:mainfrom
YaoZengzeng:waypoint
Sep 30, 2024
Merged

kmeshctl waypoint framework#901
kmesh-bot merged 7 commits intokmesh-net:mainfrom
YaoZengzeng:waypoint

Conversation

@YaoZengzeng
Copy link
Copy Markdown
Member

What type of PR is this?

/kind enhancement

What this PR does / why we need it:

Implement kmeshctl waypoint subcommand, so we could use it to better manage waypoints.

Which issue(s) this PR fixes:
Fixes part of #821

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


KmeshWaypointForTrafficTypeLabel = "istio.io/waypoint-for"

WaypointImageAnnotation = "sidecar.istio.io/proxyImage"
KmeshWaypointImage = "ghcr.io/kmesh-net/waypoint:latest"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit:If it in 0.5.0 release, is waypoint version also fixed to 0.5.0?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch!

It should be the same as the release version, but it should also be configurable, because we prefer to use the latest image during dev.

@YaoZengzeng YaoZengzeng force-pushed the waypoint branch 2 times, most recently from cda58ed to 0eebb5e Compare September 27, 2024 08:28
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.03%. Comparing base (6856384) to head (33ed0dd).
Report is 15 commits behind head on main.

see 1 file 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 608e998...33ed0dd. Read the comment docs.

Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
@YaoZengzeng YaoZengzeng changed the title WIP kmeshctl waypoint framework kmeshctl waypoint framework Sep 27, 2024
@YaoZengzeng
Copy link
Copy Markdown
Member Author

@hzxuzhonghu @LiZhenCheng9527 PTAL

},
}
waypointGenerateCmd.Flags().StringVar(&trafficType,
"for",
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.

There is no example for this usage


ver := version.Get().GitVersion

return fmt.Sprintf("ghcr.io/kmesh-net/waypoint:v%s", ver)
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.

ghcr.io/kmesh-net/waypoint can be customized

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You could use --image flag to customize waypoint image.

Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
@YaoZengzeng
Copy link
Copy Markdown
Member Author

@hzxuzhonghu updated

@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

@hzxuzhonghu
Copy link
Copy Markdown
Member

/lgtm

@kmesh-bot kmesh-bot added the lgtm label Sep 30, 2024
@kmesh-bot kmesh-bot merged commit c9634e1 into kmesh-net:main Sep 30, 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.

4 participants