Skip to content

Commit 87d9903

Browse files
committed
Add a script to run the conformance image and pull results
Change-Id: I1eb673fe37b5e8a719f9095473765c80fb7f2347
1 parent 94ad1df commit 87d9903

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

cluster/images/conformance/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ARCH?=amd64
2222
OUT_DIR?=_output
2323

2424
OUTPUT_PATH=$(shell pwd)/../../../$(OUT_DIR)
25-
BINARY_PATH=$(shell test -d $(OUTPUT_PATH)/dockerized && echo $(OUTPUT_PATH)/dockerized || echo $(OUTPUT_PATH)/local)
25+
BINARY_PATH=$(shell test -d $(OUTPUT_PATH)/local && echo $(OUTPUT_PATH)/local || echo $(OUTPUT_PATH)/dockerized)
2626

2727
GINKGO_BIN?=$(BINARY_PATH)/bin/linux/$(ARCH)/ginkgo
2828
KUBECTL_BIN?=$(BINARY_PATH)/bin/linux/$(ARCH)/kubectl
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2018 The Kubernetes Authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -o errexit
17+
set -o nounset
18+
set -o pipefail
19+
20+
kubectl create -f conformance-e2e.yaml
21+
while true; do
22+
STATUS=$(kubectl -n conformance get pods e2e-conformance-test -o jsonpath="{.status.phase}")
23+
timestamp=$(date +"[%H:%M:%S]")
24+
echo "$timestamp Pod status is: ${STATUS}"
25+
if [[ "$STATUS" == "Succeeded" ]]; then
26+
echo "$timestamp Done."
27+
break
28+
else
29+
sleep 5
30+
fi
31+
done
32+
echo "Please use 'kubectl logs -n conformance e2e-conformance-test' to view the results"

0 commit comments

Comments
 (0)