Use these files to control the output of resources

secret

kubectl get secret/database -o go-template="$(curl https://k8sh8.com/template/secret)"
{{ range $k,$v := .data }}{{ $k }}: {{ $v | base64decode }}{{ "\n" }}{{ end }}

cert

kubectl get secret/frontend-certificate -o go-template="$(curl https://k8sh8.com/template/cert)" | openssl x509 -text
{{ index .data "tls.crt" | base64decode }}

key

kubectl get secret/frontend-certificate -o go-template="$(curl https://k8sh8.com/template/key)" | openssl rsa -text
{{ index .data "tls.key" | base64decode }}