christophd opened a new pull request, #27440:
URL: https://github.com/apache/camel/pull/27440

   ## Summary
   
   New `camel-openfeature` component and language for evaluating feature flags 
using the [OpenFeature](https://openfeature.dev/) specification.
   
   - **Producer endpoint** (`openfeature:domain`) evaluates boolean and variant 
(string) feature flags using [flagd](https://flagd.dev/) as the default 
provider, with support for custom providers via the OpenFeature ecosystem 
(e.g., `EnvVarProvider`, `InMemoryProvider`)
   - **OpenFeature language** (`language("openfeature", "flag-key")`) provides 
boolean predicates for EIP constructs (`filter`, `choice`, `validate`) and 
expressions for `setProperty`
   - Supports evaluation context (targeting key, custom attributes) via 
headers, exchange properties, or message body maps
   - Provider resolution cascade: explicit bean reference → registry lookup for 
"flags" bean → FlagdProvider fallback (inline JSON, classpath resource, or 
remote host)
   - All 26 tests use local file-based flag evaluation with `InMemoryProvider` 
or flagd FILE resolver — no Docker containers required
   
   ## New files
   
   - `components/camel-openfeature/` — component module with:
     - `OpenFeatureComponent`, `OpenFeatureEndpoint`, `OpenFeatureProducer`, 
`OpenFeatureConfiguration`, `OpenFeatureConstants`
     - `OpenFeatureLanguage` (in `o.a.c.language.openfeature` package)
     - Documentation: `openfeature-component.adoc`, `openfeature-language.adoc`
     - 26 tests across 3 test classes (`OpenFeatureProducerTest`, 
`OpenFeatureLanguageTest`, `OpenFeatureInMemoryProviderTest`)
   
   ## Modified files
   
   - `components/pom.xml` — added `camel-openfeature` module
   - `parent/pom.xml` — added dependency versions (`openfeature-sdk`, 
`flagd-provider`) and dependency management entry
   - `bom/camel-bom/pom.xml` — added BOM entry
   - `catalog/camel-allcomponents/pom.xml` — added catalog dependency
   
   ## Test plan
   
   - [x] All 26 unit tests pass (`mvn verify`)
   - [x] Source check profile passes (`mvn verify -Psourcecheck`)
   - [x] Code formatting validated (formatter + impsort)
   - [x] No uncommitted generated files
   - [ ] CI pipeline passes
   
   _Claude Code on behalf of Christoph Deppisch_
   
   🤖 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]

Reply via email to