github.com/argoproj/argo-events@v1.9.1/examples/event-sources/sftp.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: EventSource
     3  metadata:
     4    name: sftp
     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    sftp:
    15      example:
    16        username:
    17          key: username
    18          name: username
    19        password:
    20          key: password
    21          name: password
    22        address:
    23          key: address
    24          name: address
    25        watchPathConfig:
    26          # directory to watch
    27          directory: /test-data/
    28          # path to watch
    29          path: x.txt
    30        pollIntervalDuration: 10s
    31        # type of the event
    32        # supported types are: CREATE, REMOVE
    33        eventType: CREATE
    34  
    35  #    example-with-path-regex:
    36  #      watchPathConfig:
    37  #        directory: "/bin/"
    38  #        # the eventsource will watch events for path that matches following regex
    39  #        pathRegexp: "([a-z]+).txt"
    40  #      eventType: "CREATE"