Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#9 from monopole/moreLogging
Browse files Browse the repository at this point in the history
more logging
  • Loading branch information
monopole authored May 16, 2018
2 parents 92eb58d + ce237c1 commit a0ab7b0
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions demos/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,37 @@
# limitations under the License.


# This script is run periodically by kubernetes test-infra.
# This script is run periodically by kubernetes
# test-infra.
#
# It's meant to use kustomized configurations against a live cluster.
# It uses kustomized configurations in a live cluster,
# to assure that the generated configs work as
# expected.
#
# This script assumes that the process running it has
# checked out the kubernetes-sigs/kustomize repo, and
# has cd'ed into it (i.e. the directory above "demos")
# before running it.
#
# At time of writing, its 'call point' was in
# https://github.com/kubernetes/test-infra/blob/master/jobs/config.json
#
# The script is written to assume that the process running it
# has checked out kubernetes-sigs/kustomize repo, and has
# changed the current directory to

function exit_with {
local msg=$1
echo >&2 ${msg}
exit 1
}
export -f exit_with

repo=kubernetes-sigs/kustomize
if [[ `pwd` != */$repo ]]; then
exit_with "Script must be run from $repo"
fi

echo pwd is `pwd`
echo GOPATH is $GOPATH
echo PATH is $PATH

go install . || \
{ exit_with "Failed to install kustomize."; }

Expand Down

0 comments on commit a0ab7b0

Please sign in to comment.