CAMEL-23300: add connectionString option to couchbase-sink kamelet#2792
Merged
Conversation
The camel-couchbase component now supports a connectionString endpoint option (added in CAMEL-23300) that takes precedence over hostname extraction for the KV service port. This is required when Testcontainers maps ports randomly, as the SDK defaults the KV port to 11210 which is unreachable on the host side. Expose the new option as an optional kamelet property so that camel-kafka-connector and other kamelet consumers can pass the full SDK connection string (e.g. couchbase://host:mappedKvPort).
oscerd
approved these changes
Apr 13, 2026
Merged
1 task
Contributor
Author
|
The failures are unrelated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
connectionStringendpoint option (added in CAMEL-23300) as an optional property on thecouchbase-sinkkamelet{{?connectionString}}so the parameter is only included when explicitly setcamel-kafka-connectordaily CI which uses Testcontainers with random port mapping — withoutconnectionString, the Couchbase SDK defaults the KV port to 11210 which is unreachable on the host sideContext
The
camel-couchbasecomponent addedconnectionStringin two commits onmain:6c2f458— addconnectionStringendpoint option and switch test-infra to random portsd004589— bypass Couchbase 8.0 CPU microarchitecture check in test-infraThe camel-kafka-connector daily build has been failing since build #345 because the couchbase-sink kamelet does not expose
connectionString, so the connector cannot pass it to the endpoint.Test plan
CamelSinkCouchbaseITCase— test passes