mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
add kubeconfig option
This commit is contained in:
parent
548188d3fa
commit
faad0c48ff
2 changed files with 11 additions and 0 deletions
|
|
@ -60,6 +60,10 @@ writeShellScriptBin "kubenix" ''
|
|||
# if no args given, add empty string
|
||||
[ $# -eq 0 ] && set -- ""
|
||||
|
||||
# use kubeconfig, if given
|
||||
kubeconfig=$(nix eval '.#kubenix.config.kubernetes.kubeconfig' --raw)
|
||||
[ -n "$kubeconfig" ] && export KUBECONFIG=$kubeconfig
|
||||
|
||||
# parse arguments
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue