-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wire install into the workflow provider
* changed it so that install runs apply through the workflow engine * switch install between deperator and the workflow engine as appropriate * not implemented Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
- Loading branch information
Showing
6 changed files
with
87 additions
and
13 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
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 |
---|---|---|
@@ -1,12 +1,29 @@ | ||
package workflow | ||
|
||
type WorkflowOptions struct { | ||
// DebugMode alters how the workflow is executed so that it can be stepped through. | ||
DebugMode bool | ||
import ( | ||
"get.porter.sh/porter/pkg/porter" | ||
"get.porter.sh/porter/pkg/storage" | ||
) | ||
|
||
// MaxParallel indicates how many parallel bundles may be executed at the same time. | ||
MaxParallel int | ||
type Workflow struct { | ||
Stages []Stage | ||
} | ||
|
||
type Workflow struct { | ||
type Stage struct { | ||
Jobs map[string]Job | ||
} | ||
|
||
type Job struct { | ||
// Action name to execute on the bundle, when empty default to applying the installation | ||
Action string | ||
|
||
// Installation key | ||
Installation storage.Installation | ||
|
||
// Depends is a list of job keys that the Job depends upon. | ||
Depends []string | ||
} | ||
|
||
func (j Job) Execute() error { | ||
p := porter.New() | ||
} |