Skip to content

Commit

Permalink
Debug failing job
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Griffiths <grant@portworx.com>
  • Loading branch information
ggriffiths committed Dec 4, 2020
1 parent 7c65799 commit 7ca4c8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions release-tools/prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,9 @@ install_snapshot_controller() {
if [[ ${REPO_DIR} == *"external-snapshotter"* ]]; then
CONTROLLER_DIR="${REPO_DIR}"
fi
docker exec -it csi-prow-worker crictl images
docker exec -it csi-prow-worker2 crictl images
docker exec -it csi-prow-control-plane crictl images
SNAPSHOT_RBAC_YAML="${CONTROLLER_DIR}/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml"
echo "kubectl apply -f ${SNAPSHOT_RBAC_YAML}"
# Ignore: Double quote to prevent globbing and word splitting.
Expand Down Expand Up @@ -1107,15 +1110,19 @@ main () {
fi
if tests_need_kind; then
set -x
install_kind || die "installing kind failed"
echo "GG - CSI PROW BUILD JOB? $CSI_PROW_BUILD_JOB"
if ${CSI_PROW_BUILD_JOB}; then
cmds="$(grep '^\s*CMDS\s*=' Makefile | sed -e 's/\s*CMDS\s*=//')"
# Get the image that was just built (if any) from the
# top-level Makefile CMDS variable and set the
# deploy.sh env variables for it. We also need to
# side-load those images into the cluster.
echo "GG - CMDs $cmds"
for i in $cmds; do
echo "GG - cmd: $i"
e=$(echo "$i" | tr '[:lower:]' '[:upper:]' | tr - _)
images="$images ${e}_REGISTRY=none ${e}_TAG=csiprow"
Expand Down

0 comments on commit 7ca4c8a

Please sign in to comment.