github.com/argoproj/argo-events@v1.9.1/examples/event-sources/file.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: EventSource 3 metadata: 4 name: file 5 spec: 6 template: 7 container: 8 volumeMounts: 9 - mountPath: /test-data 10 name: test-data 11 volumes: 12 - name: test-data 13 emptyDir: {} 14 file: 15 example: 16 watchPathConfig: 17 # directory to watch 18 directory: /test-data/ 19 # path to watch 20 path: x.txt 21 # type of the event 22 # supported types are: CREATE, WRITE, REMOVE, RENAME, CHMOD 23 eventType: CREATE 24 25 # example-with-path-regex: 26 # watchPathConfig: 27 # directory: "/bin/" 28 # # the eventsource will watch events for path that matches following regex 29 # pathRegexp: "([a-z]+).txt" 30 # eventType: "CREATE"