Setup sandbox for GCP proxy

1) Clean up alpha config to only allow alpha proxy, removing test proxy client id.
2) Add sandbox service account client id to sandbox config.
3) Add sandbox config to nomulus and proxy, remove TEST environment, which is not being used anymore. (Test now uses LOCAL.)
4) Add sandbox kubenetes config

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193400909
This commit is contained in:
jianglai 2018-04-18 12:44:59 -07:00
parent 9ed4d43f41
commit c6a4264606
5 changed files with 159 additions and 2 deletions

View file

@ -25,9 +25,9 @@ public class ProxyConfig {
enum Environment {
PRODUCTION,
SANDBOX,
SANDBOX_CANARY,
ALPHA,
LOCAL,
TEST,
}
private static final String DEFAULT_CONFIG = "config/default-config.yaml";
@ -119,7 +119,8 @@ public class ProxyConfig {
String defaultYaml = readResourceUtf8(ProxyConfig.class, DEFAULT_CONFIG);
String customYaml =
readResourceUtf8(
ProxyConfig.class, String.format(CUSTOM_CONFIG_FORMATTER, env.name().toLowerCase()));
ProxyConfig.class,
String.format(CUSTOM_CONFIG_FORMATTER, env.name().toLowerCase().replace("_", "-")));
return getConfigSettings(defaultYaml, customYaml, ProxyConfig.class);
}
}