Skip to content

Commit

Permalink
xds: change system property for reading bootstrap config (backport v1…
Browse files Browse the repository at this point in the history
….36.x) (#7961) (#7968)

Changes from "io.grpc.xds.bootstrapValue" to "io.grpc.xds.bootstrapConfig".
  • Loading branch information
voidzcy committed Mar 12, 2021
1 parent cddf3b0 commit c530094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xds/src/main/java/io/grpc/xds/BootstrapperImpl.java
Expand Up @@ -54,9 +54,9 @@ public class BootstrapperImpl implements 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 =
Expand Down Expand Up @@ -106,7 +106,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");
}

@VisibleForTesting
Expand Down

0 comments on commit c530094

Please sign in to comment.