Remove special Cloud DNS configuration from sandbox.

Removing this stanza from the config will cause sandbox to write to production
cloud dns, which is what we want.

Likewise, exclude sandbox in addition to production in the create_cdns_tld
command from the environments that point to staging.

Cloud DNS has 3 environments that we would consider using:
- staging which is reset every week, so we can't use it for sandbox
- testing, which is not accessible from external App Engine
- production

Because of the difficulties with the first two, we've decided to use production.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=208834786
This commit is contained in:
mmuller 2018-08-15 09:49:43 -07:00 committed by jianglai
parent d878f4ba2d
commit 3dba385213

View file

@ -116,7 +116,8 @@ class CreateCdnsTld extends ConfirmingCommand {
Dns.Builder builder = Dns.Builder builder =
new Dns.Builder(httpTransport, jsonFactory, credential).setApplicationName(projectId); new Dns.Builder(httpTransport, jsonFactory, credential).setApplicationName(projectId);
if (RegistryToolEnvironment.get() != RegistryToolEnvironment.PRODUCTION) { if (RegistryToolEnvironment.get() != RegistryToolEnvironment.PRODUCTION
&& RegistryToolEnvironment.get() != RegistryToolEnvironment.SANDBOX) {
builder builder
.setRootUrl("https://staging-www.sandbox.googleapis.com") .setRootUrl("https://staging-www.sandbox.googleapis.com")
.setServicePath("dns/v2beta1_staging/projects/"); .setServicePath("dns/v2beta1_staging/projects/");