perkeep/pkg/serverinit
mpl 7ea897cd84 pkg/serverinit: keep DBNames compatibility for existing GCE instances
followup of 7eda9fd502

We want existing Perkeep instances on GCE to be able to keep on running
with their DBNames-style existing databases.

To that end, we introduce the "perkeep-config-version" metadata key,
which will be set by the launcher from now on.

When perkeep configuration starts, it can lookup that key. If it is set,
it means we're in a newly created instance, and we don't need to care
about DBNames compatibility. If not, we modify the low level
configuration on the fly, so that it keeps on using the old DBNames
values that were set for a GCE instance.

Change-Id: I611811fdb9c68777c2ba799e9047d00ec0bae040
2018-01-05 21:52:42 +01:00
..
testdata pkg/serverinit: remove DBNames and provide consistent default instead 2018-01-04 04:01:34 +01:00
devmode.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
env.go pkg/serverinit: keep DBNames compatibility for existing GCE instances 2018-01-05 21:52:42 +01:00
export_test.go all: update copyright holder from Google Inc to The Perkeep Authors 2018-01-03 16:52:49 -08:00
genconfig.go pkg/serverinit: keep DBNames compatibility for existing GCE instances 2018-01-05 21:52:42 +01:00
genconfig_test.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
serverinit.go all: update copyright holder from Google Inc to The Perkeep Authors 2018-01-03 16:52:49 -08:00
serverinit_test.go all: update copyright holder from Google Inc to The Perkeep Authors 2018-01-03 16:52:49 -08:00