Skip to content

Commit

Permalink
Merge pull request #1486 from torredil/ct-test-image
Browse files Browse the repository at this point in the history
Use test driver image when testing upgrades with CT
  • Loading branch information
k8s-ci-robot authored Jan 18, 2023
2 parents 9121124 + caf11d9 commit 78c845b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions hack/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ else
GOPATH=${TEST_DIR} GOBIN=${BIN_DIR} go install sigs.k8s.io/kubetest2/...@latest
popd
fi

ecr_build_and_push "${REGION}" \
"${AWS_ACCOUNT_ID}" \
"${IMAGE_NAME}" \
"${IMAGE_TAG}"
fi

ecr_build_and_push "${REGION}" \
"${AWS_ACCOUNT_ID}" \
"${IMAGE_NAME}" \
"${IMAGE_TAG}"

if [[ "${CLUSTER_TYPE}" == "kops" ]]; then
kops_create_cluster \
"$SSH_KEY_PATH" \
Expand Down Expand Up @@ -183,13 +183,15 @@ if [[ "${HELM_CT_TEST}" == true ]]; then
export CT_REMOTE="ct"
export CT_TARGET_BRANCH="${PULL_BASE_REF}"
fi
yq -i ".image.repository = \"$IMAGE_NAME\" | .image.tag = \"$IMAGE_TAG\"" ${PWD}/charts/aws-ebs-csi-driver/values.yaml
set -x
set +e
export KUBECONFIG="${KUBECONFIG}"
${CHART_TESTING_BIN} lint-and-install --config ${PWD}/tests/ct-config.yaml
TEST_PASSED=$?
set -e
set +x
git checkout -- ${PWD}/charts/aws-ebs-csi-driver/values.yaml
else
loudecho "Deploying driver"
startSec=$(date +'%s')
Expand Down

0 comments on commit 78c845b

Please sign in to comment.