sops: Use subcommand

This commit is contained in:
Florian RICHER 2025-03-27 17:07:13 +01:00
parent 2f9da68ad2
commit 802e4c41ac

View file

@ -15,7 +15,7 @@
```console
function sops_kubectl() {
find . -type f -name '*secret.properties.enc' -exec sh -c 'sops -d "$1" > "${1%.enc}"' _ {} \;
find . -type f -name '*secret.properties.enc' -exec sh -c 'sops decrypt "$1" > "${1%.enc}"' _ {} \;
kubectl $@
find . -type f -name '*secret.properties' -exec sh -c 'rm "$1"' _ {} \;
}