feat: allow DependentResourceNode creation override by xstefank · Pull Request #2961 · operator-framework/java-operator-sdk
Pull Request Overview
This PR enables CDI bean injection in Condition subclasses by making DependentResourceNode creation configurable through the DependentResourceFactory. This allows frameworks like Quarkus to override node creation and inject dependencies into conditions.
- Made
DependentResourceNodeclass public for external extensibility - Replaced direct node construction with factory method delegation
- Added default
createNodeFrommethod toDependentResourceFactoryinterface
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| DependentResourceNode.java | Changed class visibility from package-private to public |
| DefaultManagedWorkflow.java | Replaced direct node instantiation with factory method call |
| DependentResourceFactory.java | Added default createNodeFrom method for customizable node creation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.