Skip to content

Commit

Permalink
fix: switch to ssd storageClass
Browse files Browse the repository at this point in the history
CI is failing due to timout during importing of VM image, this might
be caused by slow storageClass. This commit is switching to ssd class
which is faster

Signed-off-by: Karel Simon <ksimon@redhat.com>
  • Loading branch information
ksimon1 committed Aug 1, 2023
1 parent fc9e0d3 commit 1cba3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export CDI_VERSION=$(latest_version "containerized-data-importer")

# switch to faster storage class for widows tests (slower storage class is causing timeouts due
# to not able to copy whole windows disk into cluster)
if [[ ! "$(oc get storageclass | grep -q 'ssd-csi (default)')" ]] && [[ $TARGET =~ windows.* ]]; then
if [[ ! "$(oc get storageclass | grep -q 'ssd-csi (default)')" ]] ; then
oc annotate storageclass ssd-csi storageclass.kubernetes.io/is-default-class=true --overwrite
oc annotate storageclass standard-csi storageclass.kubernetes.io/is-default-class- --overwrite
fi
Expand Down

0 comments on commit 1cba3e7

Please sign in to comment.