Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions helpers/run-in-test-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ function update-ccm() {
# docker save $IMAGE -o image.tar
# run-in-test-cluster
#
# When IMAGE_SOURCE=import, the imagePullPolicy is set to Never,
# to ensure the imported image is used and nothing is pulled from
# a registry.
#
if [[ "${IMAGE_SOURCE-build}" == "build" ]]; then
build-image
else
Expand All @@ -162,6 +166,12 @@ function apply-resources() {
| sed "s|https://api.cloudscale.ch|${api_url}|g" \
> /tmp/ccm.yml

if [[ "${IMAGE_SOURCE-build}" == "import" ]]; then
# Ensure the imported image is used, and no image is pulled
# from a remote registry.
sed -i 's|imagePullPolicy: IfNotPresent|imagePullPolicy: Never|g' /tmp/ccm.yml
fi

export KUBECONFIG=k8test/cluster/admin.conf
kubectl delete -f /tmp/ccm.yml --ignore-not-found=true
kubectl apply -f /tmp/ccm.yml
Expand Down
Loading