kubectl edit secret from file 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 -