kubectl rename secret code example
Example: kubectl edit secret
kubectl get secret mysecret -o json | jq '.data["foo"]="YmFy"' | kubectl apply -f -
kubectl get secret mysecret -o json | jq '.data["foo"]="YmFy"' | kubectl apply -f -