-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: ls hook Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: files Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: codegen Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: unwanted code Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: unwanted code Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: lint and test Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: address comments Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: address comments Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: removed printf Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: fixed Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: lint Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: expr envmap Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: added test Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: test Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: test Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: line Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: lint Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: lint Signed-off-by: Saravanan Balasubramanian <[email protected]>
- Loading branch information
1 parent
303bf79
commit 45730a9
Showing
38 changed files
with
6,857 additions
and
740 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,39 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: lifecycle-hook-tmpl-level- | ||
spec: | ||
entrypoint: main | ||
templates: | ||
- name: main | ||
steps: | ||
- - name: step-1 | ||
hooks: | ||
exit: | ||
# Expr will not support `-` on variable name. Variable should wrap with `[]` | ||
expression: steps["step-1"].status == "Running" | ||
template: http | ||
success: | ||
expression: steps["step-1"].status == "Succeeded" | ||
template: http | ||
template: echo | ||
- - name: step2 | ||
hooks: | ||
exit: | ||
expression: steps.step2.status == "Running" | ||
template: http | ||
success: | ||
expression: steps.step2.status == "Succeeded" | ||
template: http | ||
template: echo | ||
|
||
- name: echo | ||
container: | ||
image: alpine:3.6 | ||
command: [sh, -c] | ||
args: ["echo \"it was heads\""] | ||
|
||
- name: http | ||
http: | ||
# url: http://dummy.restapiexample.com/api/v1/employees | ||
url: "https://raw.githubusercontent.com/argoproj/argo-workflows/4e450e250168e6b4d51a126b784e90b11a0162bc/pkg/apis/workflow/v1alpha1/generated.swagger.json" |
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,28 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: lifecycle-hook- | ||
spec: | ||
entrypoint: main | ||
hooks: | ||
exit: | ||
template: http | ||
running: | ||
expression: workflow.status == "Running" | ||
template: http | ||
templates: | ||
- name: main | ||
steps: | ||
- - name: step1 | ||
template: heads | ||
|
||
- name: heads | ||
container: | ||
image: alpine:3.6 | ||
command: [sh, -c] | ||
args: ["echo \"it was heads\""] | ||
|
||
- name: http | ||
http: | ||
# url: http://dummy.restapiexample.com/api/v1/employees | ||
url: "https://raw.githubusercontent.com/argoproj/argo-workflows/4e450e250168e6b4d51a126b784e90b11a0162bc/pkg/apis/workflow/v1alpha1/generated.swagger.json" |
Oops, something went wrong.