-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
16 changed files
with
445 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,10 @@ rules: | |
- watch | ||
- update | ||
- patch | ||
- delete | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create |
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 |
---|---|---|
|
@@ -77,4 +77,10 @@ rules: | |
- watch | ||
- update | ||
- patch | ||
- delete | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# e2e test to ensure the controller publishes | ||
# an audit event marking the failure | ||
# in case of node failure | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: failed-step-event- | ||
spec: | ||
entrypoint: exit | ||
templates: | ||
- name: exit | ||
container: | ||
image: docker/whalesay:latest | ||
command: [sh, -c, exit 1] |
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,42 @@ | ||
# This example demonstrates that argo emits | ||
# a WorkflowFailed event in case of pvc creation failure | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: volumes-pvc-fail-event- | ||
spec: | ||
entrypoint: volumes-pvc-example | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: workdir | ||
spec: | ||
accessModes: [ "InvalidAccessMode" ] | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
|
||
templates: | ||
- name: volumes-pvc-example | ||
steps: | ||
- - name: generate | ||
template: whalesay | ||
- - name: print | ||
template: print-message | ||
|
||
- name: whalesay | ||
container: | ||
image: docker/whalesay:latest | ||
command: [sh, -c] | ||
args: ["echo generating message in volume; cowsay hello world | tee /mnt/vol/hello_world.txt"] | ||
volumeMounts: | ||
- name: workdir | ||
mountPath: /mnt/vol | ||
|
||
- name: print-message | ||
container: | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ["echo getting message from volume; find /mnt/vol; cat /mnt/vol/hello_world.txt"] | ||
volumeMounts: | ||
- name: workdir | ||
mountPath: /mnt/vol |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# e2e test to ensure the controller publishes | ||
# an audit event marking the success | ||
# in case of workflow success | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: success-event- | ||
spec: | ||
entrypoint: exit | ||
templates: | ||
- name: exit | ||
container: | ||
image: docker/whalesay:latest |
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.