mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2026-02-02 09:25: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;
|
||||
|
||||
postBuild = ''
|
||||
export DIFF="${diff}"
|
||||
wrapProgram $out/bin/kubenix \
|
||||
--set PATH "$out/bin" \
|
||||
--set KUBECONFIG "${kubeconfig}" \
|
||||
--set KUBECTL_EXTERNAL_DIFF "''${DIFF}" \
|
||||
--set MANIFEST "${result}"
|
||||
--run 'export KUBECONFIG=''${KUBECONFIG:-${kubeconfig}}' \
|
||||
--set KUBECTL_EXTERNAL_DIFF '${diff}' \
|
||||
--set MANIFEST '${result}'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue