-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing a new Task specification (#859)
We introduce a new `Task` specification, which will allow us to better encapsulate different kinds of tasks (e.g. Helm, Pipe-tasks, etc) in the future. Here is how the API changed: *Before:* tasks were a list of resources, which were applied in step with an optional `delete: true` signaling, that resources have to be deleted. ``` # operator.yaml ... tasks: deploy: resources: - deploy.yaml remove: reources: - deploy.yaml plans: deploy: strategy: serial phases: - name: phase strategy: serial steps: - name: step tasks: - deploy remove: strategy: serial phases: - name: phase strategy: serial steps: - name: step tasks: - remove delete: true ``` The new task definition requires specifying tasks `name`, `kind` and `spec` fields. Here is the same example using new `Apply` and `Delete` tasks kinds: ``` tasks: - Name: deploy Kind: Apply Spec: resources: - deploy.yaml - Name: uninstall Kind: Delete Spec: resources: - deploy.yaml ``` Its usage from the step is almost the same, merely `delete: true` has been removed. Additionally, plan execution logic was reworked, It now respects phases strategy and propagates fatal and transient execution errors differently (see [this comment](https://github.com/kudobuilder/kudo/pull/859/files#diff-bec59313038b1b7f55ce3d37d3445a32R39) for more information). Fixes: #839 Co-authored-by: Aleksey Dukhovniy <adukhovniy@mesosphere.io>
- Loading branch information
Showing
43 changed files
with
1,925 additions
and
596 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.