sourcegraph/cmd
Keegan Carruthers-Smith 1212512844
endpoint: allow empty Maps to disable Zoekt (#46280)
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.
2023-01-11 10:32:58 +02:00
..
blobstore Use new alpine base image (#45937) 2022-12-22 19:57:05 +01:00
frontend endpoint: allow empty Maps to disable Zoekt (#46280) 2023-01-11 10:32:58 +02:00
github-proxy Use new alpine base image (#45937) 2022-12-22 19:57:05 +01:00
gitserver repos: check for corruption during backgroud repo update (#46014) 2023-01-09 17:27:57 +02:00
loadtest Use new alpine base image (#45937) 2022-12-22 19:57:05 +01:00
migrator Use new alpine base image (#45937) 2022-12-22 19:57:05 +01:00
repo-updater web: make current ExternalServicePage and ExternalServiceEditPage. (#46238) 2023-01-09 12:48:37 +04:00
searcher remove beyang from CODENOTIFY files (#46182) 2023-01-06 09:13:47 -08:00
server sg: Fix incorrect matching of comments in sg lint -fix go (#46202) 2023-01-06 17:28:58 +04:00
sitemap logging: migrate to sglog (#45108) 2022-12-05 10:08:40 -05:00
symbols faster function-incomplete local dev builds without cgo (#46230) 2023-01-07 12:41:05 -08:00
worker authz: Move sub-repo perms to enterprise (#45659) 2022-12-28 10:44:07 +02:00
README.md Reminder to keep architecture diagram in-sync (#36869) 2022-06-08 19:40:36 -07:00

This directory contains Sourcegraph services and binaries.

When a services is added, removed, or when a service's dependencies change, update our architecture diagram.