* Add release info to Nomulus config files

Add the actual release tag and beam staging project id to the config
file. This allows the Nomulus server to find the right version of the
BEAM pipelines to launch.
This commit is contained in:
Weimin Yu 2021-03-23 10:08:15 -04:00 committed by GitHub
parent 4314e2598b
commit a235493e70
3 changed files with 9 additions and 0 deletions

View file

@ -652,6 +652,13 @@ public final class RegistryConfig {
return config.beam.defaultJobZone;
}
/** Returns the GCS bucket URL with all staged BEAM flex templates. */
@Provides
@Config("beamStagingBucketUrl")
public static String provideBeamStagingBucketUrl(RegistryConfigSettings config) {
return config.beam.stagingBucketUrl;
}
/**
* Returns the URL of the GCS location we store jar dependencies for beam pipelines.
*

View file

@ -133,6 +133,7 @@ public class RegistryConfigSettings {
public static class Beam {
public String defaultJobRegion;
public String defaultJobZone;
public String stagingBucketUrl;
}
/** Configuration for Cloud DNS. */

View file

@ -425,6 +425,7 @@ beam:
# The default zone to run Apache Beam (Cloud Dataflow) jobs in.
# TODO(weiminyu): consider dropping zone config. No obvious needs for this.
defaultJobZone: us-east1-c
stagingBucketUrl: gcs-bucket-with-staged-templates
keyring:
# The name of the active keyring, either "KMS" or "Dummy".