Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

300 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Starter for Java Operator SDK

Supports Spring Boot 4.x

Getting Started

Easiest way to get started, is to take a look on WebPage sample.

Configuration Properties

You can see configuration operator properties root here.

Reconciler properties here.

Overriding default implementation

You can provide own implementation instead of the by default provided beans, life for the Fabric8 client but also the Operator instance.

By default, managed dependent resources are created through Spring's AutowireCapableBeanFactory, so they can receive Spring-managed dependencies (e.g. via constructor injection) instead of requiring a no-arg constructor. Because of this, dependent resources also go through the same lifecycle as any other Spring bean: fields annotated with @Autowired/@Value are populated, @PostConstruct methods run, and matching AOP advice wraps the instance in a proxy - this differs from a plain no-arg-constructed instance, so double-check any existing dependent resource that relies on annotation-driven injection being a no-op, or on being constructed without side effects.

You can provide your own DependentResourceFactory bean to override this default behavior, or set javaoperatorsdk.dependent-resources.spring-managed=false to fall back to Java Operator SDK's own no-arg-constructor default.

About

Spring Boot Starter for Java Operator SDK

Topics

Resources

Stars

56 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages