Skip to content

Commit

Permalink
cca-operator: fix solr create collection to ignore evicted pods (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Mar 24, 2019
1 parent 98add72 commit a90fe93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cca-operator/update-instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if [ "${USE_CENTRALIZED_INFRA}" == "1" ]; then
| kubectl $KUBECTL_GLOBAL_ARGS --namespace "${INSTANCE_NAMESPACE}" create -f -
[ "$?" != "0" ] && exit 1
fi
! SOLRCLOUD_POD_NAME=$(kubectl -n ckan-cloud get pods -l "app=solr" -o 'jsonpath={.items[0].metadata.name}') && exit 1
! 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
echo Verifying solrcloud collection ${INSTANCE_NAMESPACE} on solrcloud pod $SOLRCLOUD_POD_NAME in namespace ckan-cloud
SOLRCLOUD_COLLECTION_EXISTS=$(kubectl -n ckan-cloud exec $SOLRCLOUD_POD_NAME \
-- curl 'localhost:8983/solr/admin/collections?action=LIST&wt=json' \
Expand Down

0 comments on commit a90fe93

Please sign in to comment.