Created
March 26, 2024 11:04
-
-
Save levid0s/5dd154b246246c289a83e0b858c93929 to your computer and use it in GitHub Desktop.
K9S Certinfo Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins: | |
certinfo: | |
shortCut: Shift-I | |
confirm: false | |
description: Get TLS Cert Info | |
scopes: | |
- secret | |
command: sh | |
background: false | |
args: | |
- -c | |
- >- | |
kubectl | |
get secret | |
--context $CONTEXT | |
-n $NAMESPACE | |
$NAME -o json | |
| jq -r '.data."tls.crt"' | |
| base64 -d | |
| certinfo | |
| less -K |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment