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
returnResourceID.fromResource(desired(primary, context)); // can be replaced by a static ResourceID
405
+
}
406
+
```
407
+
408
+
and just return the `name` and `namespace` of the target resource.
409
+
410
+
In general however the whole mechanism can be overridden and optimized. See the related base implementation
411
+
in [`AbstractDependetResource`](https://github.com/operator-framework/java-operator-sdk/blob/6cd0f884a7c9b60c81bd2d52da54adbd64d6e118/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/AbstractDependentResource.java#L126-L136)
412
+
413
+
See also example of selection for external resource [here](https://github.com/operator-framework/java-operator-sdk/blob/6cd0f884a7c9b60c81bd2d52da54adbd64d6e118/operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/externalstate/ExternalWithStateDependentResource.java#L43-L49).
414
+
415
+
### Resource Discriminators
416
+
417
+
It is also possible to be more explicit about how JOSDK should identify the proper secondary resource by using
0 commit comments