| apiVersion: argoproj.io/v1alpha1 |
| kind: Sensor |
| metadata: |
| name: minio-sensor |
| labels: |
| # sensor controller with instanceId "argo-events" will process this sensor |
| sensors.argoproj.io/sensor-controller-instanceid: argo-events |
| spec: |
| template: |
| spec: |
| containers: |
| - name: sensor |
| image: argoproj/sensor:v0.13.0 |
| imagePullPolicy: Always |
| serviceAccountName: argo-events-sa |
| subscription: |
| http: |
| port: 9300 |
| dependencies: |
| - name: test-dep |
| gatewayName: minio-gateway |
| eventName: example |
| triggers: |
| - template: |
| name: minio-workflow-trigger |
| k8s: |
| group: argoproj.io |
| version: v1alpha1 |
| resource: workflows |
| operation: create |
| source: |
| resource: |
| apiVersion: argoproj.io/v1alpha1 |
| kind: Workflow |
| metadata: |
| generateName: artifact-workflow-2- |
| spec: |
| entrypoint: whalesay |
| templates: |
| - name: whalesay |
| container: |
| command: |
| - cowsay |
| image: docker/whalesay:latest |
| args: |
| - THIS_WILL_BE_REPLACED |
| # The container args from the workflow are overridden by the s3 notification key |
| parameters: |
| - src: |
| dependencyName: test-dep |
| dataKey: notification.0.s3.object.key |
| dest: spec.templates.0.container.args.0 |