Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions resources_test-12/event-source.calendar.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
34 changes: 34 additions & 0 deletions resources_test-12/event-source.git-source.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
18 changes: 18 additions & 0 deletions resources_test-12/ingress.git-source.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
43 changes: 43 additions & 0 deletions resources_test-12/sensor.cron.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
45 changes: 45 additions & 0 deletions resources_test-12/sensor.git-source.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
29 changes: 29 additions & 0 deletions resources_test-12/workflow-template.hello-world.yaml
Original file line number Diff line number Diff line change
@@ -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: {}