Skip to content

Commit

Permalink
WIP. Reorg the code
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Sep 19, 2024
1 parent a5796e4 commit 4edde9f
Show file tree
Hide file tree
Showing 7 changed files with 434 additions and 418 deletions.
1 change: 1 addition & 0 deletions src/main/java/dev/snowdrop/WorkflowApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

@QuarkusMain
public class WorkflowApp {

public static void main(String[] args) {
Quarkus.run(AppCommands.class, args);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/dev/snowdrop/factory/WorkflowBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import dev.snowdrop.factory.tekton.TektonProvider;

public class WorkflowBuilder {

public Builder withProvider(Type providerType) {
Provider provider = createProvider(providerType.toString()); // convert string to enum if needed
return new Builder(provider);
Expand Down
417 changes: 0 additions & 417 deletions src/main/java/dev/snowdrop/factory/WorkflowResource.java

Large diffs are not rendered by default.

429 changes: 429 additions & 0 deletions src/main/java/dev/snowdrop/factory/WorkfowResourceBuilder.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
//import static dev.snowdrop.factory.konflux.pipeline.Finally.KONFLUX_PIPELINE_FINALLY;
//import static dev.snowdrop.factory.konflux.pipeline.Results.KONFLUX_PIPELINE_RESULTS;
// import static dev.snowdrop.factory.konflux.pipeline.Tasks.*;
import static dev.snowdrop.factory.WorkfowResourceBuilder.*;
import static dev.snowdrop.factory.konflux.pipeline.Annotations.generateAnnotations;
import static dev.snowdrop.factory.konflux.pipeline.Labels.generateLabels;
import static dev.snowdrop.service.RemoteTaskSvc.BUNDLE_PREFIX;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import java.util.List;

import static dev.snowdrop.factory.WorkflowResource.populateTimeOut;
import static dev.snowdrop.factory.WorkfowResourceBuilder.populateTimeOut;

public class PipelineRunBuilder {
public static PipelineRun generatePipelineRun(Type TYPE, Configurator cfg, List<PipelineTask> tasks, List<Param> params, List<WorkspaceBinding> pipelineWorkspaces, List<PipelineResult> pipelineResults) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.stream.Stream;

import static dev.snowdrop.factory.WorkflowResource.*;
import static dev.snowdrop.factory.WorkfowResourceBuilder.*;
import static dev.snowdrop.factory.tekton.PipelineBuilder.generatePipeline;
import static dev.snowdrop.factory.tekton.PipelineRunBuilder.generatePipelineRun;
import static dev.snowdrop.factory.tekton.TaskRunBuilder.generateTaskRun;
Expand Down

0 comments on commit 4edde9f

Please sign in to comment.