Skip to content

Commit af0c3c2

Browse files
committed
docs
Signed-off-by: Attila Mészáros <[email protected]>
1 parent f8b9336 commit af0c3c2

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

docs/documentation/v5-0-migration.md

+31
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,34 @@ permalink: /docs/v5-0-migration
1212
1. [Result of managed dependent resources](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent/managed/ManagedDependentResourceContext.java#L55-L57)
1313
is not `Optional` anymore. In case you use this result, simply use the result
1414
objects directly.
15+
16+
2. Workflow is now explicit for managed dependent resources:
17+
So instead (from WebPage sample):
18+
19+
```java
20+
21+
@ControllerConfiguration(
22+
dependents = {
23+
@Dependent(type = ConfigMapDependentResource.class),
24+
@Dependent(type = DeploymentDependentResource.class),
25+
@Dependent(type = ServiceDependentResource.class),
26+
@Dependent(type = IngressDependentResource.class,
27+
reconcilePrecondition = ExposedIngressCondition.class)
28+
}))
29+
// Omitted code
30+
```
31+
32+
33+
Now the following structure is used:
34+
35+
```java
36+
@ControllerConfiguration(
37+
workflow = @Workflow(dependents = {
38+
@Dependent(type = ConfigMapDependentResource.class),
39+
@Dependent(type = DeploymentDependentResource.class),
40+
@Dependent(type = ServiceDependentResource.class),
41+
@Dependent(type = IngressDependentResource.class,
42+
reconcilePrecondition = ExposedIngressCondition.class)
43+
}))
44+
// Omitted code
45+
```

operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/bulkdependent/ManagedBulkDependentWithReadyConditionReconciler.java

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import io.javaoperatorsdk.operator.api.reconciler.UpdateControl;
99
import io.javaoperatorsdk.operator.api.reconciler.dependent.Dependent;
1010
import io.javaoperatorsdk.operator.api.reconciler.workflow.Workflow;
11-
import io.javaoperatorsdk.operator.processing.dependent.workflow.WorkflowReconcileResult;
1211

1312
@ControllerConfiguration(
1413
workflow = @Workflow(dependents = @Dependent(readyPostcondition = SampleBulkCondition.class,

0 commit comments

Comments
 (0)