Skip to content

Commit 922ba4c

Browse files
committed
Removed redundant path separator in mongot config
1 parent a14e482 commit 922ba4c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ logs
9494

9595
# locally packaged chart
9696
mongodb-kubernetes-*.tgz
97+
98+
scripts/code_snippets/tests/outputs/*

controllers/searchcontroller/mongodbsearch_reconcile_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func (r *MongoDBSearchReconcileHelper) ensureEgressTlsConfig(ctx context.Context
272272

273273
mongotModification := func(config *mongot.Config) {
274274
config.SyncSource.ReplicaSet.TLS = ptr.To(true)
275-
config.SyncSource.CertificateAuthorityFile = ptr.To(tls.CAMountPath + "/" + tlsSourceConfig.CAFileName)
275+
config.SyncSource.CertificateAuthorityFile = ptr.To(tls.CAMountPath + tlsSourceConfig.CAFileName)
276276

277277
// if the gRPC server is configured to accept TLS connections then toggle mTLS as well
278278
if config.Server.Grpc.TLS.Mode == mongot.ConfigTLSModeTLS {

scripts/code_snippets/code_snippets_cleanup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@ for snippet_dir in $(bash "${script_dir}/find_snippets_directories.sh"); do
3232
done
3333

3434
wait
35+
36+
echo "Cleaning up snippets outputs"
37+
rm -rf "scripts/code_snippets/tests/outputs/*"
38+
3539
echo "Cleaning up done."
3640

0 commit comments

Comments
 (0)