-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Workflow extracted to a separate annotation (#2274)
Signed-off-by: Attila Mészáros <csviri@gmail.com>
- Loading branch information
Showing
52 changed files
with
318 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...work-core/src/main/java/io/javaoperatorsdk/operator/api/config/workflow/WorkflowSpec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.javaoperatorsdk.operator.api.config.workflow; | ||
|
||
import java.util.List; | ||
|
||
import io.javaoperatorsdk.operator.api.config.dependent.DependentResourceSpec; | ||
|
||
public class WorkflowSpec { | ||
|
||
@SuppressWarnings("rawtypes") | ||
private final List<DependentResourceSpec> dependentResourceSpecs; | ||
|
||
public WorkflowSpec(List<DependentResourceSpec> dependentResourceSpecs) { | ||
this.dependentResourceSpecs = dependentResourceSpecs; | ||
} | ||
|
||
public List<DependentResourceSpec> getDependentResourceSpecs() { | ||
return dependentResourceSpecs; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...tor-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/Workflow.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.javaoperatorsdk.operator.api.reconciler; | ||
|
||
import java.lang.annotation.*; | ||
|
||
import io.javaoperatorsdk.operator.api.reconciler.dependent.Dependent; | ||
|
||
@Inherited | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.TYPE}) | ||
public @interface Workflow { | ||
|
||
Dependent[] dependents(); | ||
|
||
} |
9 changes: 6 additions & 3 deletions
9
...ava/io/javaoperatorsdk/operator/processing/dependent/workflow/ManagedWorkflowFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.