@@ -62,16 +62,16 @@ var (
62
62
// When both bootstrap FileName and FileContent are set, FileName is used.
63
63
BootstrapFileContent = os .Getenv (BootstrapFileContentEnv )
64
64
// RingHashSupport indicates whether ring hash support is enabled, which can
65
- // be enabled by setting the environment variable
66
- // "GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH" to "true ".
67
- RingHashSupport = strings .EqualFold (os .Getenv (ringHashSupportEnv ), "true " )
65
+ // be disabled by setting the environment variable
66
+ // "GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH" to "false ".
67
+ RingHashSupport = ! strings .EqualFold (os .Getenv (ringHashSupportEnv ), "false " )
68
68
// ClientSideSecuritySupport is used to control processing of security
69
69
// configuration on the client-side.
70
70
//
71
71
// Note that there is no env var protection for the server-side because we
72
72
// have a brand new API on the server-side and users explicitly need to use
73
73
// the new API to get security integration on the server.
74
- ClientSideSecuritySupport = strings .EqualFold (os .Getenv (clientSideSecuritySupportEnv ), "true " )
74
+ ClientSideSecuritySupport = ! strings .EqualFold (os .Getenv (clientSideSecuritySupportEnv ), "false " )
75
75
// AggregateAndDNSSupportEnv indicates whether processing of aggregated
76
76
// cluster and DNS cluster is enabled, which can be enabled by setting the
77
77
// environment variable
80
80
AggregateAndDNSSupportEnv = strings .EqualFold (os .Getenv (aggregateAndDNSSupportEnv ), "true" )
81
81
82
82
// RetrySupport indicates whether xDS retry is enabled.
83
- RetrySupport = strings .EqualFold (os .Getenv (retrySupportEnv ), "true " )
83
+ RetrySupport = ! strings .EqualFold (os .Getenv (retrySupportEnv ), "false " )
84
84
85
85
// C2PResolverSupport indicates whether support for C2P resolver is enabled.
86
86
// This can be enabled by setting the environment variable
89
89
// C2PResolverTestOnlyTrafficDirectorURI is the TD URI for testing.
90
90
C2PResolverTestOnlyTrafficDirectorURI = os .Getenv (c2pResolverTestOnlyTrafficDirectorURIEnv )
91
91
)
92
-
93
- func init () {
94
- // Set the env var used to control processing of security configuration on
95
- // the client-side to true by default.
96
- // TODO(easwars): Remove this env var completely in 1.42.x release.
97
- //
98
- // If the env var is set explicitly, honor it.
99
- ClientSideSecuritySupport = true
100
- if val , ok := os .LookupEnv (clientSideSecuritySupportEnv ); ok {
101
- ClientSideSecuritySupport = strings .EqualFold (val , "true" )
102
- }
103
- }
0 commit comments