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
Copy file name to clipboardExpand all lines: docs/documentation/dependent-resources.md
-6
Original file line number
Diff line number
Diff line change
@@ -318,12 +318,6 @@ There might be casees, though, where it might be problematic to call the `desire
318
318
- Override the `managedSecondaryResourceID` method, if your `DependentResource` extends `KubernetesDependentResource`,
319
319
where it's very often possible to easily determine the `ResourceID` of the secondary resource. This would probably be
320
320
the easiest solution if you're working with Kubernetes resources.
321
-
- Configure
322
-
a [`ResourceDiscriminator`](https://github.com/java-operator-sdk/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ResourceDiscriminator.java)
323
-
implementation for your `DependentResource`. This was the approach that was used before JOSDK v5 but should not be
324
-
needed anymore as it is simpler and more efficient to override one the methods above instead of creating a separate
325
-
class. Discriminators can be declaratively set when using managed Kubernetes dependent resources via
326
-
the `resourceDiscriminator` field of the `@KubernetesDependent` annotation.
327
321
328
322
### Sharing an Event Source Between Dependent Resources
Copy file name to clipboardExpand all lines: docs/documentation/v5-0-migration.md
+2
Original file line number
Diff line number
Diff line change
@@ -26,3 +26,5 @@ permalink: /docs/v5-0-migration
26
26
Also, the related part of a [workaround](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/StatusPatchSSAMigrationIT.java#L110-L116).
27
27
4.`ManagedDependentResourceContext` has been renamed to `ManagedWorkflowAndDependentResourceContext` and is accessed
28
28
via the accordingly renamed `managedWorkflowAndDependentResourceContext` method.
29
+
5.`ResourceDiscriminator` was removed. In most of the cases you can just delete the discriminator, everything should
30
+
work without it by default. To optimize and handle special cases see the relevant section in [Dependent Resource documentation](/docs/dependent-resources#multiple-dependent-resources-of-same-type).
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ResourceDiscriminator.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ResourceIDMatcherDiscriminator.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/AbstractDependentResource.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependent.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependentConverter.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependentResource.java
-8
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,6 @@ public KubernetesDependentResource(Class<R> resourceType, String name) {
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependentResourceConfig.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependentResourceConfigBuilder.java
0 commit comments