Skip to content

docs: fix broken jsonpath in kubectl logs verification command#316

Open
Shruti2110-coder wants to merge 1 commit into
kmesh-net:mainfrom
Shruti2110-coder:fix-jsonpath-issue-297
Open

docs: fix broken jsonpath in kubectl logs verification command#316
Shruti2110-coder wants to merge 1 commit into
kmesh-net:mainfrom
Shruti2110-coder:fix-jsonpath-issue-297

Conversation

@Shruti2110-coder

Copy link
Copy Markdown

What this fixes

Fixes #297

The kubectl logs command in the Quick Start verification step used an invalid JSONPath expression ({.items.metadata.name}), which fails silently because items is an array and can't be accessed with .metadata.name directly.

Change

Replaced the broken JSONPath lookup with a label-selector based command, as recommended in the issue:

- kubectl logs -n kmesh-system $(kubectl get pods -n kmesh-system -o jsonpath='{.items.metadata.name}')
+ kubectl logs -n kmesh-system -l app=kmesh

Testing

Verified the new command correctly retrieves logs for the kmesh pod using the label selector.

Copilot AI review requested due to automatic review settings June 19, 2026 06:25
@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 0037471
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/6a34e2d91ffae400084c8841
😎 Deploy Preview https://deploy-preview-316--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
Copy Markdown
Collaborator

[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 kevin-wangzefeng for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

Copy link
Copy Markdown
Collaborator

Welcome @Shruti2110-coder! It looks like this is your first PR to kmesh-net/website 🎉

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

Copy link
Copy Markdown

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 simplifies the command used to retrieve Kmesh logs in the quick-start documentation by replacing a complex subshell pod query with a simpler label selector (-l app=kmesh). There are no review comments, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Quick Start installation verification command to reliably fetch Kmesh logs by replacing an invalid JSONPath expression in the kubectl logs step.

Changes:

  • Replace broken kubectl get pods ... -o jsonpath='{.items.metadata.name}' usage with a label-selector based kubectl logs command in the Quick Start verification section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/setup/quick-start.md

```shell
kubectl logs -n kmesh-system $(kubectl get pods -n kmesh-system -o jsonpath='{.items.metadata.name}')
kubectl logs -n kmesh-system -l app=kmesh
Comment thread docs/setup/quick-start.md

```shell
kubectl logs -n kmesh-system $(kubectl get pods -n kmesh-system -o jsonpath='{.items.metadata.name}')
kubectl logs -n kmesh-system -l app=kmesh
Signed-off-by: Shruti2110-coder <your-github-email@example.com>
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.

Bug : Fix broken jsonpath in kubectl logs verification command

3 participants