Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 2.11 KB

File metadata and controls

45 lines (30 loc) · 2.11 KB

My query isn't working

Don't forget to use -n/--namespace <namespace> or -a/--all-namespaces. The default namespace in Kubernetes often has few or no resources.

Read the JMESPath tutorial and SQLite documentation thoroughly.

Debug row_source and path problems by installing jp and feeding it examples of your JSON data. JMESPath and jq don't behave the same.

Several flags are available for the --debug option, try whatever seems relevant:

  • --debug cache prints the cache files consulted and what resources will be refreshed
  • --debug fetch prints each invocation of kubectl
  • --debug folder prints each file considered for a folder resource
  • --debug itemize summarizes the item generated for each step in a row_source (verbose)
  • --debug extract prints the source and value of every row, by column (verbose)
  • --debug sqlite shows the SQL for all statements executed, including table creation

These can be combined, e.g. --debug fetch,itemize. To turn on all debugging options, use --debug all.

I found a bug

Help me help you! I don't have access to your Kubernetes cluster, so you'll have to capture the neccessary detail.

  • Follow recommendations for debugging queries, above.
  • Use a low-activity namespace if possible, so the amount of data involved is small.
  • Try to reproduce the problem with as simple a query as possible, ideally on one table with no joins.
  • Run the command with the relevant --debug options and include the output
  • If possible, include the content of the cache files that are named in the debug output.

If there is too much material, you can post it to a service like Pastebin. If it includes secure information from your cluster, please redact it before posting.

Can I give feedback without opening an issue?

Sure, you can email kugl dot devel at gmail dot com.

I didn't receive a response

Like many open source committers, the author has a family and a day job. 🙂

Please be patient, and thank you for trying Kugl!