Skip to content
This repository was archived by the owner on Apr 27, 2020. It is now read-only.

Commit 424ba92

Browse files
Fix "kubeconfig_file does not exist" (#20)
This commit fixes "kubeconfig_file does not exist" by changing the current directory to source dir before running kubectl_setup.
1 parent a947ef0 commit 424ba92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/out

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ source $(dirname $0)/common.sh
1717
# Print the last exit code if it isn't 0 when this process exits
1818
trap 'on_exit' EXIT
1919

20+
# The first argument is a path to the directory containing the build's full set of sources.
2021
source_dir=$1
22+
cd $source_dir
23+
2124
payload=$(mktemp $TMPDIR/kubernetes-resource-request.XXXXXX)
2225
cat > $payload <&0
2326

@@ -31,8 +34,6 @@ if [[ -z "$kubectl_command" ]]; then
3134
exit 1
3235
fi
3336

34-
cd $source_dir
35-
3637
exe kubectl $(eval "echo $kubectl_command")
3738

3839
# Optional. The number of seconds that waits until all pods are ready. Defaults to `30`.

0 commit comments

Comments
 (0)