Steps to reproduce:
k get pods
- select a pod and press F1
Visible error message:
jq: Unknown option -o
Use jq --help for help with command-line options,
or see the jq manpage, or online docs at https://jqlang.github.io/jq
I also believe I see a "Broken pipe" error but it does not persist on screen.
My install of jq
and yq
on a Debian linux system are versions:
Neither has option -o
available.
I thought fx/libs/explain.sh
, line 4 may be the culprit
EXPLAIN=$(kubectl explain ${RS_TYPE} --recursive | sed -r 's/FIELDS:/---/' | sed -n '\|---|,$p' | sed -r 's/(\w+)\t.*/\1:/g' | yq -o props -P . | sed -r 's/ =//g')
I tried removing the -o
and -P
options, so the line reads as follows:
EXPLAIN=$(kubectl explain ${RS_TYPE} --recursive | sed -r 's/FIELDS:/---/' | sed -n '\|---|,$p' | sed -r 's/(\w+)\t.*/\1:/g' | yq . | sed -r 's/ =//g')
Update: I forgot to source the kubecui.sh
file after my change. After changing the EXPLAIN
line 4, and removing the -o
and -P
, the F1 button for Explain "works". Although the results may not have been what you originally intended. Without knowing what these two options were suppose to do, I can't really figure out what the change in behavior is.
Let me know if there is anything else I can test to help determine the root cause of the issue.