-
Notifications
You must be signed in to change notification settings - Fork 47
docs: sync latest kmeshctl documentation (commit fa9c94769c271de1436dccf450e2b549f3bc0b4a) #236
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for kmesh-net ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
There was a problem hiding this 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
andkmeshctl 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
-
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. ↩
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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).
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
# 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR syncs the latest changes from kmesh/docs/ctl.
Triggered by commit: fa9c94769c271de1436dccf450e2b549f3bc0b4a
Please review and merge.