As per recent posts, I've been falling in love with jq and using it for more and more and more ....
Today, it's Kubernetes meets jq
Specifically, working with secrets ... and following on from an earlier post: -
So I'm creating a dummy secret, wrapped around some credentials for an IBM Container Registry (ICR) instance: -
kubectl create secret docker-registry foobar --docker-server='https://us.icr.io' --docker-username='iamapikey' --docker-password='THIS_IS_NOT_A_VALID_APIKEY'