Skip to content

Commit a90fe93

Browse files
authored
cca-operator: fix solr create collection to ignore evicted pods (#31)
1 parent 98add72 commit a90fe93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cca-operator/update-instance.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if [ "${USE_CENTRALIZED_INFRA}" == "1" ]; then
8787
| kubectl $KUBECTL_GLOBAL_ARGS --namespace "${INSTANCE_NAMESPACE}" create -f -
8888
[ "$?" != "0" ] && exit 1
8989
fi
90-
! SOLRCLOUD_POD_NAME=$(kubectl -n ckan-cloud get pods -l "app=solr" -o 'jsonpath={.items[0].metadata.name}') && exit 1
90+
! SOLRCLOUD_POD_NAME=$(kubectl -n ckan-cloud get pods -l "app=solr" --field-selector 'status.phase=Running' -o 'jsonpath={.items[0].metadata.name}') && exit 1
9191
echo Verifying solrcloud collection ${INSTANCE_NAMESPACE} on solrcloud pod $SOLRCLOUD_POD_NAME in namespace ckan-cloud
9292
SOLRCLOUD_COLLECTION_EXISTS=$(kubectl -n ckan-cloud exec $SOLRCLOUD_POD_NAME \
9393
-- curl 'localhost:8983/solr/admin/collections?action=LIST&wt=json' \

0 commit comments

Comments
 (0)