@@ -137,16 +137,15 @@ See the full source code [here](https://github.com/java-operator-sdk/java-operat
137
137
138
138
## Managed Dependent Resources
139
139
140
- As mentioned previously, one goal of this implementation is to make it possible to semi- declaratively create and wire
140
+ As mentioned previously, one goal of this implementation is to make it possible to declaratively create and wire
141
141
dependent resources. You can annotate your reconciler with
142
142
` @Dependent ` annotations that specify which ` DependentResource ` implementation it depends upon. JOSDK will take the
143
143
appropriate steps to wire everything together and call your
144
144
` DependentResource ` implementations ` reconcile ` method before your primary resource is reconciled. This makes sense in
145
145
most use cases where the logic associated with the primary resource is usually limited to status handling based on the
146
146
state of the secondary resources and the resources are not dependent on each other.
147
147
148
- Note that all dependents will be reconciled in order. If an exception happens in one or more reconciliations, the
149
- followup resources will be reconciled.
148
+ See [ Workflows] ( https://javaoperatorsdk.io/docs/dependent-resources ) how/ in what order the resources are reconciled.
150
149
151
150
This behavior and automated handling is referred to as "managed" because the ` DependentResource ` instances
152
151
are managed by JOSDK.
@@ -186,15 +185,16 @@ sample [here](https://github.com/java-operator-sdk/java-operator-sdk/blob/main/s
186
185
187
186
## Standalone Dependent Resources
188
187
189
- To use dependent resources in more complex workflows, when there are some resources needs to be created only in certain
190
- conditions the standalone mode is available or the dependent resources are not independent of each other.
191
- For example if calling an API needs to happen if a service is already up and running
192
- (think configuring a running DB instance).
188
+ In case just some or sub-set of the resources are desired to be managed by dependent resources use standalone mode.
193
189
In practice this means that the developer is responsible to initializing and managing and
194
- calling ` reconcile ` method. However, this gives possibility for developers to fully customize the workflow for
190
+ calling ` reconcile ` method. However, this gives possibility for developers to fully customize the process for
195
191
reconciliation. Use standalone dependent resources for cases when managed does not fit.
196
192
197
- The sample is similar to one above it just performs additional checks, and conditionally creates an ` Ingress ` :
193
+ Note that [ Workflows] ( https://javaoperatorsdk.io/docs/dependent-resources ) support also standalone mode using
194
+ standalone resources.
195
+
196
+ The sample is similar to one above it just performs additional checks, and conditionally creates an ` Ingress ` :
197
+ (Note that now this condition creation is also possible with Workflows)
198
198
199
199
``` java
200
200
0 commit comments