Skip to content

Commit

Permalink
Use jsonpath instead of jq in openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed May 11, 2024
1 parent 6cf2117 commit cf4b363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .k9s/plugins/openssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins:
background: false
args:
- -c
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o json | jq -r ".data.\"ca.crt\"" | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o jsonpath='{.data.ca\.crt}' | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less
secret-openssl-tls:
shortCut: Shift-O
confirm: false
Expand All @@ -22,4 +22,4 @@ plugins:
background: false
args:
- -c
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o json | jq -r ".data.\"tls.crt\"" | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o jsonpath='{.data.tls\.crt}' | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less

0 comments on commit cf4b363

Please sign in to comment.