Skip to content

Commit

Permalink
docs: @workflow usage (#2413)
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Mészáros <csviri@gmail.com>
  • Loading branch information
csviri committed Jun 17, 2024
1 parent 56dacbe commit 97c96ac
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docsy/content/en/docs/workflows/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,16 @@ will only consider the `ConfigMap` deleted until that post-condition becomes `tr

```java

@ControllerConfiguration(dependents = {
@Dependent(name = DEPLOYMENT_NAME, type = DeploymentDependentResource.class,
readyPostcondition = DeploymentReadyCondition.class),
@Dependent(type = ConfigMapDependentResource.class,
reconcilePrecondition = ConfigMapReconcileCondition.class,
deletePostcondition = ConfigMapDeletePostCondition.class,
activationCondition = ConfigMapActivationCondition.class,
dependsOn = DEPLOYMENT_NAME)
@Workflow(dependents = {
@Dependent(name = DEPLOYMENT_NAME, type = DeploymentDependentResource.class,
readyPostcondition = DeploymentReadyCondition.class),
@Dependent(type = ConfigMapDependentResource.class,
reconcilePrecondition = ConfigMapReconcileCondition.class,
deletePostcondition = ConfigMapDeletePostCondition.class,
activationCondition = ConfigMapActivationCondition.class,
dependsOn = DEPLOYMENT_NAME)
})
@ControllerConfiguration
public class SampleWorkflowReconciler implements Reconciler<WorkflowAllFeatureCustomResource>,
Cleaner<WorkflowAllFeatureCustomResource> {

Expand Down

0 comments on commit 97c96ac

Please sign in to comment.