diff --git a/xds/src/main/java/io/grpc/xds/BootstrapperImpl.java b/xds/src/main/java/io/grpc/xds/BootstrapperImpl.java index 406baaf571f..87187a9514f 100644 --- a/xds/src/main/java/io/grpc/xds/BootstrapperImpl.java +++ b/xds/src/main/java/io/grpc/xds/BootstrapperImpl.java @@ -54,9 +54,9 @@ public class BootstrapperImpl extends Bootstrapper { private static final String BOOTSTRAP_CONFIG_SYS_ENV_VAR = "GRPC_XDS_BOOTSTRAP_CONFIG"; @VisibleForTesting static String bootstrapConfigFromEnvVar = System.getenv(BOOTSTRAP_CONFIG_SYS_ENV_VAR); - private static final String BOOTSTRAP_CONFIG_SYS_PROPERTY_VAR = "io.grpc.xds.bootstrapValue"; + private static final String BOOTSTRAP_CONFIG_SYS_PROPERTY = "io.grpc.xds.bootstrapConfig"; @VisibleForTesting - static String bootstrapConfigFromSysProp = System.getProperty(BOOTSTRAP_CONFIG_SYS_PROPERTY_VAR); + static String bootstrapConfigFromSysProp = System.getProperty(BOOTSTRAP_CONFIG_SYS_PROPERTY); private static final String XDS_V3_SERVER_FEATURE = "xds_v3"; @VisibleForTesting static final String CLIENT_FEATURE_DISABLE_OVERPROVISIONING = @@ -105,7 +105,7 @@ public BootstrapInfo bootstrap() throws XdsInitializationException { + "- " + BOOTSTRAP_CONFIG_SYS_ENV_VAR + "\n\n" + "Java System Properties searched:\n" + "- " + BOOTSTRAP_PATH_SYS_PROPERTY + "\n" - + "- " + BOOTSTRAP_CONFIG_SYS_PROPERTY_VAR + "\n\n"); + + "- " + BOOTSTRAP_CONFIG_SYS_PROPERTY + "\n\n"); } logger.log(XdsLogLevel.INFO, "Reading bootstrap from " + filePath); diff --git a/xds/src/main/java/io/grpc/xds/GoogleCloudToProdNameResolver.java b/xds/src/main/java/io/grpc/xds/GoogleCloudToProdNameResolver.java index 0f10ffd4bd8..4a4dacac910 100644 --- a/xds/src/main/java/io/grpc/xds/GoogleCloudToProdNameResolver.java +++ b/xds/src/main/java/io/grpc/xds/GoogleCloudToProdNameResolver.java @@ -60,7 +60,7 @@ final class GoogleCloudToProdNameResolver extends NameResolver { System.getenv("GRPC_XDS_BOOTSTRAP") != null || System.getProperty("io.grpc.xds.bootstrap") != null || System.getenv("GRPC_XDS_BOOTSTRAP_CONFIG") != null - || System.getProperty("io.grpc.xds.bootstrapValue") != null; + || System.getProperty("io.grpc.xds.bootstrapConfig") != null; private HttpConnectionProvider httpConnectionProvider = HttpConnectionFactory.INSTANCE; private final String authority;