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

Commit

Permalink
Fix "kubeconfig_file does not exist" (#20)
Browse files Browse the repository at this point in the history
This commit fixes "kubeconfig_file does not exist" by changing the
current directory to source dir before running kubectl_setup.
  • Loading branch information
superbrothers authored Feb 13, 2018
1 parent a947ef0 commit 424ba92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ source $(dirname $0)/common.sh
# Print the last exit code if it isn't 0 when this process exits
trap 'on_exit' EXIT

# The first argument is a path to the directory containing the build's full set of sources.
source_dir=$1
cd $source_dir

payload=$(mktemp $TMPDIR/kubernetes-resource-request.XXXXXX)
cat > $payload <&0

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

cd $source_dir

exe kubectl $(eval "echo $kubectl_command")

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

0 comments on commit 424ba92

Please sign in to comment.