Skip to content

Commit ad8aa6a

Browse files
authored
Disable the local client per default and only make use of the external clients (#2303)
* Disable the local client per default and only make use of the external clients
1 parent 3b93606 commit ad8aa6a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ USER 4059
106106

107107
ENV FDB_NETWORK_OPTION_TRACE_LOG_GROUP=fdb-kubernetes-operator
108108
ENV FDB_NETWORK_OPTION_TRACE_ENABLE=/var/log/fdb
109-
ENV FDB_BINARY_DIR=/usr/bin/fdb
110109
ENV FDB_NETWORK_OPTION_EXTERNAL_CLIENT_DIRECTORY=/usr/bin/fdb
110+
ENV FDB_NETWORK_OPTION_DISABLE_LOCAL_CLIENT=""
111+
ENV FDB_BINARY_DIR=/usr/bin/fdb
111112

112113
ENTRYPOINT ["/manager"]

api/v1beta2/foundationdb_env_variables.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ const (
6666
// EnvNameFDBTraceLogDirPath enables trace logs output to a file in the given directory
6767
EnvNameFDBTraceLogDirPath = "FDB_NETWORK_OPTION_TRACE_ENABLE"
6868

69+
// EnvNameFDBDisableLocalClient the name of the network option that allows to disable the local client.
70+
EnvNameFDBDisableLocalClient = "FDB_NETWORK_OPTION_DISABLE_LOCAL_CLIENT"
71+
6972
// EnvNameFDBExternalClientDir specifies path to search for dynamic libraries and adds them to the list of client
7073
// libraries for use by the multi-version client API. Must be set before setting up the network.
7174
EnvNameFDBExternalClientDir = "FDB_NETWORK_OPTION_EXTERNAL_CLIENT_DIRECTORY"

e2e/fixtures/status.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ func (fdbCluster *FdbCluster) RunFdbCliCommandInOperatorWithoutRetry(
139139
pod.Name,
140140
"manager",
141141
fmt.Sprintf(
142-
"unset %s && unset %s && unset %s && TIMEFORMAT='%%R' && echo '%s' > %s && time %s --log-dir \"/var/log/fdb\" --log --trace_format \"json\" %s -C %s --exec '%s'",
142+
"unset %s && unset %s && unset %s && unset %s && TIMEFORMAT='%%R' && echo '%s' > %s && time %s --log-dir \"/var/log/fdb\" --log --trace_format \"json\" %s -C %s --exec '%s'",
143143
fdbv1beta2.EnvNameClientThreadsPerVersion,
144144
fdbv1beta2.EnvNameFDBExternalClientDir,
145145
fdbv1beta2.EnvNameFDBIgnoreExternalClientFailures,
146+
fdbv1beta2.EnvNameFDBDisableLocalClient,
146147
cluster.Status.ConnectionString,
147148
clusterFile,
148149
fdbCliPath,

fdbclient/command_runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func getEnvironmentVariablesWithoutExcludedFdbEnv() []string {
4949
fdbv1beta2.EnvNameFDBExternalClientDir: {},
5050
fdbv1beta2.EnvNameFDBIgnoreExternalClientFailures: {},
5151
fdbv1beta2.EnvNameClientThreadsPerVersion: {},
52+
fdbv1beta2.EnvNameFDBDisableLocalClient: {},
5253
}
5354

5455
osVariables := os.Environ()

0 commit comments

Comments
 (0)