oscerd opened a new pull request, #31324:
URL: https://github.com/apache/camel/pull/31324
## Backport of #31254
Cherry-pick of #31254 onto `camel-4.22.x`.
**Original PR:** #31254
**Original title:** CAMEL-28021: camel-pinecone - tls option now defaults to
true
**Target release:** 4.22.4
**Type:** adapted cherry-pick, not a straight one. The merged commit
3fa6ad0797c7 did not apply cleanly to this branch. The adaptations are listed
below.
### Change
The `tls` endpoint option of `camel-pinecone` now defaults to `true`, so the
data plane (gRPC) connection to the index uses TLS, matching the default of the
Pinecone client. A route that connects to a local server that does not use TLS,
such as Pinecone Local, must now set `tls=false` explicitly. A route that
connects to an index in the Pinecone cloud needs no change.
- `PineconeVectorDbConfiguration`: `defaultValue = "true"` on the
`@UriParam` of `tls`, and the field is initialized to `true`. These are the
same two edits as in #31254.
- `PineconeComponentConfigurationTest.createEndpointDefaultsTlsToTrue`: the
test of #31254, unchanged.
### Adaptations for `camel-4.22.x`
1. **The option description is not reworded.** #31254 also reworded the
`description` of the `tls` option. That text exists on `main` only: it came
with the option description rework of CAMEL-23832 (#31145), and it named the
old default. On this branch the description is the setter Javadoc ("Whether the
client uses Transport Layer Security (TLS) to secure communications"). It names
no default, so it stays as it is. This difference is what made the cherry-pick
conflict in `PineconeVectorDbConfiguration.java`.
2. **The generated files are regenerated on this branch.** `pinecone.json`
(the component file and its catalog copy), `PineconeComponentBuilderFactory`
and `PineconeVectorDbEndpointBuilderFactory` come from a full build of this
branch, not from the original commit. In each of them only the default of `tls`
changes, from `false` to `true`.
3. **The upgrade guide note is not included.** The note of #31254 is in
`camel-4x-upgrade-guide-4_25.adoc`, a file that does not exist on
`camel-4.22.x`. The upgrade guides of all release lines are kept on `main`,
where the note for this line goes into `camel-4x-upgrade-guide-4_22.adoc`.
### Verification
- Full build of this branch from the root (`./mvnw clean install -DskipTests
-DskipITs`): 684 modules, BUILD SUCCESS. It regenerated the four files above
and nothing else.
- `camel-pinecone`, `mvn verify`: the 3 tests of
`PineconeComponentConfigurationTest` pass, and the 2 tests of
`PineconeLocalContainerIT` pass against the Pinecone Local container, whose
test support sets `tls=false` explicitly. `PineconeComponentIT` is skipped,
because it runs only with `-Dpinecone.token`.
- With `PineconeVectorDbConfiguration` as it is on `camel-4.22.x` today,
`createEndpointDefaultsTlsToTrue` fails with `expected: <true> but was:
<false>`.
_Claude Code on behalf of oscerd_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]