Skip to content

Commit a5a34b7

Browse files
committed
wip
1 parent 86e5121 commit a5a34b7

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docs/documentation/workflows.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ does not implement `Deleter` interface, it is considered as deleted automaticall
241241

242242
### Sample
243243

244-
245244
<div class="mermaid" markdown="0">
246245

247246
stateDiagram-v2
@@ -260,12 +259,16 @@ stateDiagram-v2
260259

261260
## Error Handling
262261

262+
As mentioned before if an error happens during a reconciliation, the reconciliation of other dependent resources will
263+
still happen. There might a case that multiple DRs are errored, therefore workflows throws an
264+
['AggregatedOperatorException'](https://github.com/java-operator-sdk/java-operator-sdk/blob/86e5121d56ed4ecb3644f2bc8327166f4f7add72/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/AggregatedOperatorException.java)
265+
that will contain all the related exceptions.
263266

267+
The exceptions can be handled by [`ErrorStatusHandler`](https://github.com/java-operator-sdk/java-operator-sdk/blob/86e5121d56ed4ecb3644f2bc8327166f4f7add72/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/AggregatedOperatorException.java)
264268

265-
## Notes
266-
267-
- Workflows can be seen as a Directed Acyclic Graph (DAG) - or more precisely a set of DAGs - where nodes are the
268-
dependent resources and edges are the dependencies.
269+
## Notes and Caveats
270+
271+
- If a resource has owner references, it will be automatically deleted by Kubernetes garbage collector if
272+
the owner resource is marked for deletion. This might not be desirable, to make sure that delete is handled by the
273+
workflow don't use garbage collected kubernetes dependent resource, use for example [`CRUDNoGCKubernetesDependentResource`](https://github.com/java-operator-sdk/java-operator-sdk/blob/86e5121d56ed4ecb3644f2bc8327166f4f7add72/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/CRUDNoGCKubernetesDependentResource.java).
269274

270-
[//]: # (ready vs precondition)
271-
[//]: # (issue with garbage collection)

0 commit comments

Comments
 (0)