Skip to content

Commit

Permalink
default KUBECONFIG to a local path
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco authored Mar 1, 2024
1 parent 24ef44d commit 10706cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/app-repo/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@

# https://devenv.sh/reference/options/#entershell
enterShell = ''
echo Hello
export KUBECONFIG="`pwd`/local-kubeconfig"
echo "Setting KUBECONFIG=$KUBECONFIG"
echo
echo "This is done to sandbox Kuberenetes tools (kubectl, skaffold, etc) to the local K8s cluster for this project."
echo "If you would like to use an existing context or make the local cluster usable from other shells"
echo "then run 'unset KUBECONFIG' before creating the local cluster."
'';
};
};
Expand Down

0 comments on commit 10706cf

Please sign in to comment.