From 50a14d4f4b72010dd8ef5695a09dd52e666303ea Mon Sep 17 00:00:00 2001 From: Nestor Acuna Blanco Date: Fri, 2 Aug 2024 15:28:58 +0200 Subject: [PATCH] fix: patching cdi after availability This error was identified while using CodeReady Workspaces with limited resources. The DataVolume specified in the test-linux.sh file did not fully deploy, resulting in failed end-to-end tests. Signed-off-by: Nestor Acuna Blanco --- automation/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/test.sh b/automation/test.sh index e2d996ce..b1f151a8 100755 --- a/automation/test.sh +++ b/automation/test.sh @@ -145,7 +145,7 @@ oc apply -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VE sample=10 current_time=0 -timeout=300 +timeout=600 # Waiting for kubevirt cr to report available oc wait --for=condition=Available --timeout=${timeout}s kubevirt/kubevirt -n $namespace @@ -179,10 +179,10 @@ echo "Deploying CDI" oc apply -f https://github.com/kubevirt/containerized-data-importer/releases/download/$CDI_VERSION/cdi-operator.yaml oc apply -f https://github.com/kubevirt/containerized-data-importer/releases/download/$CDI_VERSION/cdi-cr.yaml -oc patch cdi cdi -n cdi --patch '{"spec": {"config": {"dataVolumeTTLSeconds": -1}}}' --type merge - oc wait --for=condition=Available --timeout=${timeout}s CDI/cdi -n cdi +oc patch cdi cdi -n cdi --patch '{"spec": {"config": {"dataVolumeTTLSeconds": -1}}}' --type merge + oc apply -f - <