sops: Use subcommand
This commit is contained in:
parent
2f9da68ad2
commit
802e4c41ac
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
```console
|
```console
|
||||||
function sops_kubectl() {
|
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 $@
|
kubectl $@
|
||||||
find . -type f -name '*secret.properties' -exec sh -c 'rm "$1"' _ {} \;
|
find . -type f -name '*secret.properties' -exec sh -c 'rm "$1"' _ {} \;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue