Core features and capabilities of QOSDK
mainThe Quarkus Operator SDK (QOSDK) provides several automated features for developing Kubernetes operators:
Developer Experience
- Automatic Boilerplate: Automatically generates the main class; you only need to implement
Reconcilerclasses. - Automatic Registration: Reconcilers are automatically registered and started.
- Native Support: Automatically configures support for native compilation.
- Dev Mode: Provides a live-coding experience where the operator reloads automatically upon code changes.
Configuration and CDI
- Build-time Configuration: Processes configuration at build time to catch issues early.
- Runtime Overrides: Allows overriding configuration via application properties.
- CDI Integration:
- The Kubernetes/OpenShift client is automatically injectable.
- The
Operatorbean is available for injection. Reconcilerimplementations,DependentResourceimplementations, andWorkflowconditions are all available as CDI beans.
Kubernetes and CRD Support
- Automatic CRD Generation: Generates CRDs for all
CustomResourceimplementations used by reconcilers. - Automatic Application: In Dev Mode and during tests, CRDs are automatically applied to the cluster when changes are detected.
- RBAC and Descriptors: Automatically generates Kubernetes descriptors and RBACs, leveraging configuration metadata (e.g., for dependent resources).