Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/components-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,19 +235,19 @@ jobs:
oc wait csv "$CSV" -n redhat-ods-operator \
--for=jsonpath='{.status.phase}'=Succeeded --timeout=600s

- name: Wait for DataScienceCluster CRD to be available
- name: Wait for DataScienceCluster v2 API to be available
run: |
echo "Waiting for DataScienceCluster CRD to be registered..."
echo "Waiting for DataScienceCluster v2 API to be served..."
for i in $(seq 1 60); do
if oc get crd datascienceclusters.datasciencecluster.opendatahub.io &>/dev/null; then
echo "DataScienceCluster CRD is available"
if oc api-resources --api-group=datasciencecluster.opendatahub.io 2>/dev/null | grep -q v2; then
echo "DataScienceCluster v2 API is available"
break
fi
if [ "$i" -eq 60 ]; then
echo "::error::DataScienceCluster CRD did not become available within timeout"
echo "::error::DataScienceCluster v2 API did not become available within timeout"
exit 1
fi
echo "Attempt $i/60 - CRD not yet available, waiting 10s..."
echo "Attempt $i/60 - v2 API not yet available, waiting 10s..."
sleep 10
done

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/prod-release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -374,19 +374,19 @@ jobs:
oc wait csv "$CSV" -n redhat-ods-operator \
--for=jsonpath='{.status.phase}'=Succeeded --timeout=600s

- name: Wait for DataScienceCluster CRD to be available
- name: Wait for DataScienceCluster v2 API to be available
run: |
echo "Waiting for DataScienceCluster CRD to be registered..."
echo "Waiting for DataScienceCluster v2 API to be served..."
for i in $(seq 1 60); do
if oc get crd datascienceclusters.datasciencecluster.opendatahub.io &>/dev/null; then
echo "DataScienceCluster CRD is available"
if oc api-resources --api-group=datasciencecluster.opendatahub.io 2>/dev/null | grep -q v2; then
echo "DataScienceCluster v2 API is available"
break
fi
if [ "$i" -eq 60 ]; then
echo "::error::DataScienceCluster CRD did not become available within timeout"
echo "::error::DataScienceCluster v2 API did not become available within timeout"
exit 1
fi
echo "Attempt $i/60 - CRD not yet available, waiting 10s..."
echo "Attempt $i/60 - v2 API not yet available, waiting 10s..."
sleep 10
done

Expand Down
Loading