maint-bucket-migrate

command
v0.0.0-...-89f4574 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

maint-butcket-migrate

This is a utility tool to migrate a set of mutation logs from one bucket to another.

This works by reading a file describing the set of repositories to migrate, then calculating the "from" buckets and "to" buckets.

This then uses the kubernetes api to stop the running "to" maintner instances, then it clears out the "to" bucket and copies the contents of the "from" bucket to the "to" bucket.

Once all repositories have been migrated, the "supervisor" pod is restarted in order to restart all the deployments we deleted during the migration.

NOTE: The "from" and "to" buckets can be in different projects

Usage

maint-bucket-migrate --file=migrate_repos.json --from-prefix="mtr-b-" --to-prefix="mtr-p-"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL