Skip to content

Conversation

kmesh-bot
Copy link
Collaborator

This PR syncs the latest changes from kmesh/docs/ctl.

Triggered by commit: fa9c94769c271de1436dccf450e2b549f3bc0b4a

Please review and merge.

Copy link

netlify bot commented Sep 15, 2025

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 75979b9
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/68c7aea63126eb0008bda744
😎 Deploy Preview https://deploy-preview-236--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kmesh-bot
Copy link
Collaborator Author

[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 assign jayesh9747 for approval. 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

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @kmesh-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request synchronizes the latest kmeshctl command-line tool documentation from the upstream kmesh/docs/ctl directory. It introduces new markdown files that provide detailed usage, examples, and options for various kmeshctl commands, enhancing the clarity and completeness of the project's command-line interface guide.

Highlights

  • New kmeshctl documentation: Added comprehensive documentation for the kmeshctl command-line tool, detailing its main functions and various subcommands.
  • Authz eBPF program management: New documentation covers kmeshctl authz commands for enabling, disabling, and checking the status of xdp authz eBPF programs for Kmesh's authorization offloading.
  • Monitoring and Logging controls: Documentation for kmeshctl monitoring and kmeshctl log commands has been added, explaining how to control access logs, metrics, and logger levels for kmesh-daemon.
  • IPsec Secret Management: New kmeshctl secret documentation provides guidance on creating, getting, and deleting IPsec keys and configuration data.
  • Waypoint Configuration Management: Detailed documentation for kmeshctl waypoint commands is now available, covering how to apply, delete, generate, list, and check the status of waypoint configurations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request syncs the latest documentation for kmeshctl by adding a number of new markdown files. The new documentation provides a good overview of the various commands. My review includes a few suggestions to improve clarity and correctness, such as fixing a typo in a command example, clarifying ambiguous examples, and correcting minor grammatical issues. Overall, this is a great addition to the project's documentation.


```bash
# Enable/Disable Kmesh's accesslog:
kmeshctl monitoring <kmesh-daemon-pod> --accesslog enable/disable

Choose a reason for hiding this comment

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

medium

The use of enable/disable in the example is ambiguous. It's better to provide separate, concrete examples for both enable and disable actions. This will make the documentation clearer for users. Please consider splitting this into two examples, one for enable and one for disable.

This comment applies to all similar examples in this file (lines 16, 19, 22, 26, 29, 32, 35).

Suggested change
kmeshctl monitoring <kmesh-daemon-pod> --accesslog enable/disable
kmeshctl monitoring <kmesh-daemon-pod> --accesslog enable

# Enable/Disable Kmesh's accesslog:
kmeshctl monitoring <kmesh-daemon-pod> --accesslog enable/disable

# Enable/Disable services' metrics and accesslog generated from bpf:

Choose a reason for hiding this comment

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

medium

There's a grammatical error here. The apostrophe in services' is incorrect for a plural noun. It should be service metrics or metrics for services.

This issue is also present on lines 34 and 42.

Suggested change
# Enable/Disable services' metrics and accesslog generated from bpf:
# Enable/Disable service metrics and accesslog generated from bpf:


```bash
# Use kmeshctl secret to manage secret configuration data for IPsec:
kmeshctl secret create or kmeshctl secret create --key=$(echo -n "{36-character user-defined key here}" | xxd -p -c 64)

Choose a reason for hiding this comment

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

medium

The use of or in the example command is confusing and makes the command invalid. To show alternative commands, please place them on separate lines. For example:

kmeshctl secret create
kmeshctl secret create --key=$(echo -n "{36-character user-defined key here}" | xxd -p -c 64)
Suggested change
kmeshctl secret create or kmeshctl secret create --key=$(echo -n "{36-character user-defined key here}" | xxd -p -c 64)
kmeshctl secret create

kmeshctl waypoint apply --namespace default --wait

# Apply a waypoint to a specific pod
kmesh waypoint apply -n default --name reviews-v2-pod-waypoint --for workload

Choose a reason for hiding this comment

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

medium

There is a typo in the command. kmesh should be kmeshctl.

Suggested change
kmesh waypoint apply -n default --name reviews-v2-pod-waypoint --for workload
kmeshctl waypoint apply -n default --name reviews-v2-pod-waypoint --for workload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant