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 cacheprints the cache files consulted and what resources will be refreshed--debug fetchprints each invocation ofkubectl--debug folderprints each file considered for afolderresource--debug itemizesummarizes the item generated for each step in arow_source(verbose)--debug extractprints the source and value of every row, by column (verbose)--debug sqliteshows 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.
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
--debugoptions 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.
Sure, you can email kugl dot devel at gmail dot com.
Like many open source committers, the author has a family and a day job. 🙂
Please be patient, and thank you for trying Kugl!