This tool takes a secret in the JSON format in STDIN and outputs the same secret with the data
field replaced with a clear-text stringData
.
This allows to make patches to secrets from clear-text like the following:
kubectl get secret my-secret -ojson | kube-clear-secret | sed 's/my-old-value/my-new-value/g' | kubectl apply -f -