mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:51:57 +00:00
The only service discovery we support is via k8s. We want to ensure that is working, so we have the invariant that if its empty we make all Map lookups fail. However, this means that even if we explicitly wanted an empty Map those would also fail (once communicated via config's ServiceConnections). This moves the enforcement of the invariant from the discovery loop to just the k8s discovery code. Now our ServiceConnections based discovery can return an empty list. Additionally this allows us to simplify the condition around how we take discovered endpoints/errors and update the map. This is because in all functions on Map if err is non-nil we return the error. This commit also allows an empty value for zoekt address. Explicitly setting an empty value disables zoekt. Test Plan: go test and manual testing with zoekt disabled. |
||
|---|---|---|
| .. | ||
| blobstore | ||
| frontend | ||
| github-proxy | ||
| gitserver | ||
| loadtest | ||
| migrator | ||
| repo-updater | ||
| searcher | ||
| server | ||
| sitemap | ||
| symbols | ||
| worker | ||
| README.md | ||
This directory contains Sourcegraph services and binaries.
When a services is added, removed, or when a service's dependencies change, update our architecture diagram.