From eb0044cd5ffde3526a158a86bcd1356f1df0e1cd Mon Sep 17 00:00:00 2001 From: Andrei Sekretenko Date: Tue, 25 May 2021 12:56:56 +0200 Subject: [PATCH] Patch apiVersion in the operator-test config Signed-off-by: Andrei Sekretenko --- hack/run-operator-tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/run-operator-tests.sh b/hack/run-operator-tests.sh index 12d062cc9..ac7630503 100755 --- a/hack/run-operator-tests.sh +++ b/hack/run-operator-tests.sh @@ -22,7 +22,10 @@ rm -rf operators git clone https://github.com/kudobuilder/operators mkdir operators/bin/ cp ./bin/kubectl-kudo operators/bin/ -sed "s/%version%/$KUDO_VERSION/" operators/kudo-test.yaml.tmpl > operators/kudo-test.yaml + +# TODO (asekretenko): Use kuttl directly instead of kudo test. +# This will obviate the need to patch apiVersion. +cat operators/kudo-test.yaml.tmpl | sed "s/%version%/$KUDO_VERSION/" | sed "s/apiVersion: kudo.dev\/v1alpha1/apiVersion: kuttl.dev\/v1beta1/" > operators/kudo-test.yaml if [ "$INTEGRATION_OUTPUT_JUNIT" == true ] then