wrap a line

 

ns=${ns:-maestro-platform-system}
secret=${secret:-maestro-ca}
 
kubectl get secret -n $ns $secret -o jsonpath='{.data.*}' | base64 -d | openssl x509 -noout -text
openssl s_client -connect web-ui.kind.internal:443
 
# kubectl get -n $ns secrets $secret -o json | jq  -r ".data | to_entries[] | [.value]|.[0]" | fold -sw 64 | sed -e '1 i\-----BEGIN CERTIFICATE-----' -e '$a-----END CERTIFICATE-----'

 

posted @ 2023-06-06 11:58  lvmxh  阅读(4)  评论(0编辑  收藏  举报