Skip to content

Commit

Permalink
fix: patching cdi after availability
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nestoracunablanco committed Aug 12, 2024
1 parent 88dba8c commit 50a14d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 - <<EOF
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit 50a14d4

Please sign in to comment.