From cba45bc9058a309d0be4bb283b77704789a08132 Mon Sep 17 00:00:00 2001 From: Connor Catlett Date: Tue, 10 Jan 2023 15:55:00 +0000 Subject: [PATCH] Fix chart testing for CI Get CT base ref from prow rather than git remote Signed-off-by: Connor Catlett --- hack/prow.sh | 5 +++++ tests/ct-config.yaml | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hack/prow.sh b/hack/prow.sh index a5fd118efc..053955b381 100755 --- a/hack/prow.sh +++ b/hack/prow.sh @@ -43,3 +43,8 @@ export REGISTRY=$REGISTRY_NAME export TAG=$GIT_TAG export VERSION=$PULL_BASE_REF IMAGE=gcr.io/k8s-staging-provider-aws/aws-ebs-csi-driver make all-push + +# Setup required for chart tester becuase is ALWAYS needs a remote +git remote add ct https://github.com/kubernetes-sigs/aws-ebs-csi-driver.git +export CT_REMOTE=ct +export CT_SINCE=$PULL_BASE_REF diff --git a/tests/ct-config.yaml b/tests/ct-config.yaml index f90cf0d128..51ba981fe3 100644 --- a/tests/ct-config.yaml +++ b/tests/ct-config.yaml @@ -1,7 +1,3 @@ -remote: origin -since: HEAD~1 -github-instance: https://github.com -lint-conf: tests/ct-lintconfig.yaml validate-chart-schema: false validate-yaml: false check-version-increment: false @@ -15,4 +11,3 @@ release-label: release kubectl-timeout: 3000s skip-clean-up: false print-logs: true -debug: false