Commit 887ccaa 1 parent da41a95 commit 887ccaa Copy full SHA for 887ccaa
File tree 4 files changed +5
-5
lines changed
main/java/dev/openfeature/contrib/providers/flagd
test/java/dev/openfeature/contrib/providers/flagd
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,11 @@ variables.
104
104
Given below are the supported configurations:
105
105
106
106
| Option name | Environment variable name | Type & Values | Default | Compatible resolver |
107
- | ----------------------- | -------------------------------- | -------------------------- | ----------- | --------------------- |
107
+ | --------------------- | ------------------------------ | ------------------------ | --------- | ------------------- |
108
108
| resolver | FLAGD_RESOLVER | String - rpc, in-process | rpc | |
109
109
| host | FLAGD_HOST | String | localhost | rpc & in-process |
110
110
| port | FLAGD_PORT | int | 8013 | rpc & in-process |
111
- | targetUri | FLAGD_GRPC_TARGET | string | null | rpc & in-process |
111
+ | targetUri | FLAGD_TARGET_URI | string | null | rpc & in-process |
112
112
| tls | FLAGD_TLS | boolean | false | rpc & in-process |
113
113
| socketPath | FLAGD_SOCKET_PATH | String | null | rpc & in-process |
114
114
| certPath | FLAGD_SERVER_CERT_PATH | String | null | rpc & in-process |
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public final class Config {
37
37
static final String OFFLINE_SOURCE_PATH = "FLAGD_OFFLINE_FLAG_SOURCE_PATH" ;
38
38
static final String KEEP_ALIVE_MS_ENV_VAR_NAME_OLD = "FLAGD_KEEP_ALIVE_TIME" ;
39
39
static final String KEEP_ALIVE_MS_ENV_VAR_NAME = "FLAGD_KEEP_ALIVE_TIME_MS" ;
40
- static final String GRPC_TARGET_ENV_VAR_NAME = "FLAGD_GRPC_TARGET " ;
40
+ static final String TARGET_URI_ENV_VAR_NAME = "FLAGD_TARGET_URI " ;
41
41
42
42
static final String RESOLVER_RPC = "rpc" ;
43
43
static final String RESOLVER_IN_PROCESS = "in-process" ;
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public class FlagdOptions {
132
132
* resolution. For more visit (https://grpc.io/docs/guides/custom-name-resolution/)
133
133
*/
134
134
@ Builder .Default
135
- private String targetUri = fallBackToEnvOrDefault (Config .GRPC_TARGET_ENV_VAR_NAME , null );
135
+ private String targetUri = fallBackToEnvOrDefault (Config .TARGET_URI_ENV_VAR_NAME , null );
136
136
137
137
138
138
/**
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ void testRpcProviderFromEnv_portConfigured_usesConfiguredPort() {
191
191
}
192
192
193
193
@ Test
194
- @ SetEnvironmentVariable (key = GRPC_TARGET_ENV_VAR_NAME , value = "envoy://localhost:1234/foo.service" )
194
+ @ SetEnvironmentVariable (key = TARGET_URI_ENV_VAR_NAME , value = "envoy://localhost:1234/foo.service" )
195
195
void testTargetOverrideFromEnv () {
196
196
FlagdOptions flagdOptions = FlagdOptions .builder ().build ();
197
197
You can’t perform that action at this time.
0 commit comments