You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d9ecdf
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/content/en/docs/documentation/operations/configuration.md
+58-1Lines changed: 58 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,10 @@ The Java Operator SDK (JOSDK) provides abstractions that work great out of the b
8
8
Configuration options operate at several levels:
9
9
-**Operator-level** using `ConfigurationService`
10
10
-**Reconciler-level** using `ControllerConfiguration`
11
-
-**DependentResource-level** using the `DependentResourceConfigurator` interface
11
+
-**DependentResource-level** using the `ConfiguredDependentResource` interface
12
12
-**EventSource-level** where some event sources (like `InformerEventSource`) need fine-tuning to identify which events trigger the associated reconciler
13
13
14
+
14
15
## Operator-Level Configuration
15
16
16
17
Configuration that impacts the entire operator is performed via the `ConfigurationService` class. `ConfigurationService` is an abstract class with different implementations based on which framework flavor you use (e.g., Quarkus Operator SDK replaces the default implementation). Configurations initialize with sensible defaults but can be changed during initialization.
@@ -223,6 +224,62 @@ For more information on how to use this feature, we recommend looking at how thi
223
224
`KubernetesDependentResource` in the core framework, `SchemaDependentResource` in the samples or `CustomAnnotationDep`
224
225
in the `BaseConfigurationServiceTest` test class.
225
226
227
+
### Providing a custom configuration to a `KubernetesDependentResource`
228
+
229
+
`KubernetesDependentResource` already implements `ConfiguredDependentResource`, parameterized with
230
+
`KubernetesDependentResourceConfig`, so a subclass cannot implement the interface a second time with its own
231
+
configuration type. If your Kubernetes dependent needs additional, programmatically provided values (for example a
232
+
service or a setting that is only known when the operator starts), extend `KubernetesDependentResourceConfig` instead:
Copy file name to clipboardExpand all lines: operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/ControllerConfigurationOverriderTest.java
0 commit comments