Skip to content

Commit

Permalink
add haifa defi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jul 15, 2024
1 parent fdead55 commit 8f281ce
Showing 1 changed file with 23 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,37 @@
{{- range $organization, $workflows := $organizations }}
{{- range $workflow := $workflows }}
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: generic-fetcher-{{ $workflow.name_suffix }}
spec:
workflowTemplateRef:
name: dgp-operator-runner
arguments:
parameters:
- name: operator
value: generic_fetcher
- name: config_json
value: |
{
"source_url": {{ $workflow.source_url | quote }},
"target_instance_name": {{ $instance | upper | quote }},
"target_package_id": {{ $workflow.target_package_id | quote }},
"target_organization_id": {{ $organization | quote }},
"source_filter": {{ $workflow.source_filter | toJson }}
}
---
apiVersion: argoproj.io/v1alpha1
kind: CronWorkflow
metadata:
name: generic-fetcher-{{ $workflow.name_suffix }}
annotations:
dgp.datacity.org.il/instance: {{ $instance | quote }}
dgp.datacity.org.il/organization: {{ $organization | quote }}
dgp.datacity.org.il/source_url: {{ $workflow.source_url | quote }}
dgp.datacity.org.il/target_package_id: {{ $workflow.target_package_id | quote }}
spec:
schedule: "0 0 1 * *"
concurrencyPolicy: Forbid
workflowSpec:
workflowTemplateRef:
name: dgp-operator-runner
arguments:
parameters:
- name: operator
value: generic_fetcher
- name: config_json
value: |
{
"source_url": {{ $workflow.source_url | quote }},
"target_instance_name": {{ $instance | upper | quote }},
"target_package_id": {{ $workflow.target_package_id | quote }},
"target_organization_id": {{ $organization | quote }},
"source_filter": {{ $workflow.source_filter | toJson }}
}
------
name: generic-fetcher-{{ $workflow.name_suffix }}
---
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 8f281ce

Please sign in to comment.