Skip to content

Commit

Permalink
Use test driver image when testing upgrades with CT
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Torres <[email protected]>
  • Loading branch information
torredil committed Jan 18, 2023
1 parent 3ce83e5 commit caf11d9
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 caf11d9

Please sign in to comment.