BR periodically look for UFS DUTs with a specific hive value and send this set of DUTs to a Bots Provider API (e.g. GCE Provider).
Used for CloudBots migration. BR migrates/rolls back DUTs based on a migration file stored in luci-config (services/bots-regulator-dev/migration.cfg). Migrating a DUT means updating the DUT's hive to cloudbots.
To pass a service account use -service-account-json
flag.
to read a local config file: cfgmodule.NewModule(&cfgmodule.ModuleOptions{LocalDir: "<path-to-file>"})
to read the dev config file pass this flag: -cloud-project bots-regulator-dev
gcp project: bots-regulator-dev
gcp project: bots-regulator-prod
Deployment process can be found at data/cloud-run/projects/bots-regulator.