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 2d12979
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
+57-1Lines changed: 57 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ 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
## Operator-Level Configuration
@@ -223,6 +223,62 @@ For more information on how to use this feature, we recommend looking at how thi
223
223
`KubernetesDependentResource` in the core framework, `SchemaDependentResource` in the samples or `CustomAnnotationDep`
224
224
in the `BaseConfigurationServiceTest` test class.
225
225
226
+
### Providing a custom configuration to a `KubernetesDependentResource`
227
+
228
+
`KubernetesDependentResource` already implements `ConfiguredDependentResource`, parameterized with
229
+
`KubernetesDependentResourceConfig`, so a subclass cannot implement the interface a second time with its own
230
+
configuration type. If your Kubernetes dependent needs additional, programmatically provided values (for example a
231
+
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