mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2026-02-02 17:35:10 +01:00
Fix Bash expansion in kubeconfig path of CLI script (#63)
* Fix $HOME expansion in CLI script * Allow overwriting kubeconfig at run-time of CLI script
This commit is contained in:
parent
c00c78b982
commit
060f475729
1 changed files with 3 additions and 4 deletions
|
|
@ -36,11 +36,10 @@ symlinkJoin {
|
||||||
passthru.manifest = result;
|
passthru.manifest = result;
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
export DIFF="${diff}"
|
|
||||||
wrapProgram $out/bin/kubenix \
|
wrapProgram $out/bin/kubenix \
|
||||||
--set PATH "$out/bin" \
|
--set PATH "$out/bin" \
|
||||||
--set KUBECONFIG "${kubeconfig}" \
|
--run 'export KUBECONFIG=''${KUBECONFIG:-${kubeconfig}}' \
|
||||||
--set KUBECTL_EXTERNAL_DIFF "''${DIFF}" \
|
--set KUBECTL_EXTERNAL_DIFF '${diff}' \
|
||||||
--set MANIFEST "${result}"
|
--set MANIFEST '${result}'
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue