In some cases the operator doesn't restart the indexer if the git clone operation fails. We should update the indexer to always restart the indexer or mark it as errored:
If the error is temporary (e.g. bad internet connection), the indexer should be restarted.
If the error is fatal (e.g. bad git url or missing authentication credentials) the indexer should be marked as error and its status updated.
In all cases the number of restarts should be incremented by one.
Describe the bug
In some cases the operator doesn't restart the indexer if the git clone operation fails. We should update the indexer to always restart the indexer or mark it as errored:
In all cases the number of restarts should be incremented by one.