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

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: EventSource
     3  metadata:
     4    name: storage-grid
     5  spec:
     6    service:
     7      ports:
     8        - port: 8080
     9          targetPort: 8080
    10    storageGrid:
    11      example:
    12        # hook contains configuration for the HTTP server running in the event-source.
    13        # StorageGrid will send events to following port and endpoint
    14        webhook:
    15          # port to run HTTP server on
    16          port: "8080"
    17          # HTTP request method to allow. In this case, only POST requests are accepted
    18          method: POST
    19          # endpoint to listen events on
    20          endpoint: "/"
    21          # url for StorageGrid to send notifications to. Make sure that this URL is reachable from StorageGrid
    22          # The name for the service is in `<event-source-name>-eventsource-svc` format.
    23          # You will need to create an Ingress or Openshift Route for the event-source service so that it can be reached from StorageGrid.
    24          url: event-source-url
    25        # List of supported events can be derived from AWS S3 events https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#supported-notification-event-types
    26        events:
    27          - s3:ObjectCreated:*
    28        # More info available at https://docs.netapp.com/sgws-110/index.jsp?topic=%2Fcom.netapp.doc.sg-tenant-admin%2FGUID-7D83D20B-F061-40ED-8C7C-F3395047B8C5.html
    29        topicArn: topic arn
    30        # Name of the bucket to listen notifications for
    31        bucket: name of the bucket
    32        # This is the URL of your StorageGrid API Portal
    33        apiURL: storagegrid api url
    34        # Auth Token to authenticate against StorageGrid API
    35        authToken:
    36          name: name of k8s secret that holds storagegrid auth token
    37          key: key within secret that holds the token value