Skip to content

Commit

Permalink
Merge pull request #603 from nestoracunablanco/fix/e2eCdi
Browse files Browse the repository at this point in the history
fix: patching cdi after availability
  • Loading branch information
kubevirt-bot authored Aug 19, 2024
2 parents 88dba8c + 50a14d4 commit d9e49da
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 d9e49da

Please sign in to comment.