Suffix PATH on kubenix script (#67)

Fixes #66

Setting the `PATH` to `$out/bin` is causing programs from the original `PATH` (such as `gpg`) to be inaccessible to `vals` - causing decryption of sops secrets with `gpg` to fail.
This commit is contained in:
Luiz Ribeiro 2024-06-11 08:57:23 -04:00 committed by GitHub
parent 823cc87e64
commit a04066c455
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ symlinkJoin {
postBuild = '' postBuild = ''
wrapProgram $out/bin/kubenix \ wrapProgram $out/bin/kubenix \
--set PATH "$out/bin" \ --suffix PATH : "$out/bin" \
--run 'export KUBECONFIG=''${KUBECONFIG:-${toString kubeconfig}}' \ --run 'export KUBECONFIG=''${KUBECONFIG:-${toString kubeconfig}}' \
--set KUBECTL_EXTERNAL_DIFF '${diff}' \ --set KUBECTL_EXTERNAL_DIFF '${diff}' \
--set MANIFEST '${result}' --set MANIFEST '${result}'