Skip to content

Commit

Permalink
Debug failing job
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Griffiths <[email protected]>
  • Loading branch information
ggriffiths committed Dec 4, 2020
1 parent 7c65799 commit 60640b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions deploy/kubernetes/csi-snapshotter/setup-csi-snapshotter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
volumeMounts:
- name: socket-dir
mountPath: /csi
Expand All @@ -92,7 +92,7 @@ spec:
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
volumeMounts:
- name: socket-dir
mountPath: /csi
Expand All @@ -110,7 +110,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ spec:
args:
- "--v=5"
- "--leader-election=false"
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
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 60640b1

Please sign in to comment.