Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 50efc2b

Browse files
committedJun 18, 2024
docs: @workflow usage (#2413)
Signed-off-by: Attila Mészáros <csviri@gmail.com>
1 parent 2670d0c commit 50efc2b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
 

‎docsy/content/en/docs/workflows/_index.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,16 @@ will only consider the `ConfigMap` deleted until that post-condition becomes `tr
7070

7171
```java
7272

73-
@ControllerConfiguration(dependents = {
74-
@Dependent(name = DEPLOYMENT_NAME, type = DeploymentDependentResource.class,
75-
readyPostcondition = DeploymentReadyCondition.class),
76-
@Dependent(type = ConfigMapDependentResource.class,
77-
reconcilePrecondition = ConfigMapReconcileCondition.class,
78-
deletePostcondition = ConfigMapDeletePostCondition.class,
79-
activationCondition = ConfigMapActivationCondition.class,
80-
dependsOn = DEPLOYMENT_NAME)
73+
@Workflow(dependents = {
74+
@Dependent(name = DEPLOYMENT_NAME, type = DeploymentDependentResource.class,
75+
readyPostcondition = DeploymentReadyCondition.class),
76+
@Dependent(type = ConfigMapDependentResource.class,
77+
reconcilePrecondition = ConfigMapReconcileCondition.class,
78+
deletePostcondition = ConfigMapDeletePostCondition.class,
79+
activationCondition = ConfigMapActivationCondition.class,
80+
dependsOn = DEPLOYMENT_NAME)
8181
})
82+
@ControllerConfiguration
8283
public class SampleWorkflowReconciler implements Reconciler<WorkflowAllFeatureCustomResource>,
8384
Cleaner<WorkflowAllFeatureCustomResource> {
8485

0 commit comments

Comments
 (0)
Please sign in to comment.