diff --git a/resources_test-12/event-source.calendar.yaml b/resources_test-12/event-source.calendar.yaml new file mode 100644 index 0000000..defaa26 --- /dev/null +++ b/resources_test-12/event-source.calendar.yaml @@ -0,0 +1,12 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + name: calendar +spec: + calendar: + example-with-interval: + interval: 5m + schedule: "" + eventBusName: codefresh-eventbus +status: {} diff --git a/resources_test-12/event-source.git-source.yaml b/resources_test-12/event-source.git-source.yaml new file mode 100644 index 0000000..87a45c7 --- /dev/null +++ b/resources_test-12/event-source.git-source.yaml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + name: github +spec: + eventBusName: codefresh-eventbus + github: + push: + active: true + apiToken: + key: git_token + name: autopilot-secret + contentType: json + events: + - push + id: 0 + insecure: true + owner: "" + repositories: + - names: + - test-12_git-source + owner: akavalchuk + repository: "" + webhook: + endpoint: /git-source/ + method: POST + port: "13000" + url: http://replace-with-real-public-url + service: + ports: + - port: 13000 + targetPort: 0 +status: {} diff --git a/resources_test-12/ingress.git-source.yaml b/resources_test-12/ingress.git-source.yaml new file mode 100644 index 0000000..c2d9921 --- /dev/null +++ b/resources_test-12/ingress.git-source.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + creationTimestamp: null + name: github +spec: + rules: + - http: + paths: + - backend: + service: + name: github-eventsource-svc + port: + number: 13000 + path: /git-source/ + pathType: ImplementationSpecific +status: + loadBalancer: {} diff --git a/resources_test-12/sensor.cron.yaml b/resources_test-12/sensor.cron.yaml new file mode 100644 index 0000000..67ff48e --- /dev/null +++ b/resources_test-12/sensor.cron.yaml @@ -0,0 +1,43 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + name: cron +spec: + dependencies: + - eventName: example-with-interval + eventSourceName: calendar + name: calendar-dep + eventBusName: codefresh-eventbus + template: + serviceAccountName: argo-server + triggers: + - template: + argoWorkflow: + group: argoproj.io + operation: submit + parameters: + - dest: spec.arguments.parameters.0.value + src: + dataKey: eventTime + dependencyName: calendar-dep + resource: workflows + source: + resource: + apiVersion: argoproj.io/v1alpha1 + kind: Workflow + metadata: + creationTimestamp: null + generateName: cron- + spec: + arguments: + parameters: + - name: message + workflowTemplateRef: + name: hello-world + status: + finishedAt: null + startedAt: null + version: v1alpha1 + name: hello-world +status: {} diff --git a/resources_test-12/sensor.git-source.yaml b/resources_test-12/sensor.git-source.yaml new file mode 100644 index 0000000..28ecee2 --- /dev/null +++ b/resources_test-12/sensor.git-source.yaml @@ -0,0 +1,45 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + name: github +spec: + dependencies: + - eventName: push + eventSourceName: github + name: github-dep + eventBusName: codefresh-eventbus + template: + serviceAccountName: argo + triggers: + - retryStrategy: + steps: 3 + template: + argoWorkflow: + group: argoproj.io + operation: submit + parameters: + - dest: spec.arguments.parameters.0.value + src: + dataKey: body.ref + dependencyName: github-dep + resource: workflows + source: + resource: + apiVersion: argoproj.io/v1alpha1 + kind: Workflow + metadata: + creationTimestamp: null + generateName: github- + spec: + arguments: + parameters: + - name: message + workflowTemplateRef: + name: hello-world + status: + finishedAt: null + startedAt: null + version: v1alpha1 + name: hello-world +status: {} diff --git a/resources_test-12/workflow-template.hello-world.yaml b/resources_test-12/workflow-template.hello-world.yaml new file mode 100644 index 0000000..8175b87 --- /dev/null +++ b/resources_test-12/workflow-template.hello-world.yaml @@ -0,0 +1,29 @@ +apiVersion: argoproj.io/v1alpha1 +kind: WorkflowTemplate +metadata: + creationTimestamp: null + name: hello-world +spec: + arguments: + parameters: + - name: message + entrypoint: whalesay + podGC: + strategy: OnWorkflowCompletion + serviceAccountName: codefresh-sa + templates: + - container: + args: + - '{{inputs.parameters.message}}' + command: + - cowsay + image: docker/whalesay:latest + name: "" + resources: {} + inputs: + parameters: + - name: message + value: hello world + metadata: {} + name: whalesay + outputs: {}