Skip to content

Commit

Permalink
Use input arguments to specify table name and path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfang committed Nov 12, 2021
1 parent 3df2256 commit df361e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions argo-submit-preingest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

argo submit --serviceaccount=argo-workflow -p 'workflow-table-name=objectTable_tract' -p 'prefix=PREOPS-863' manifests/preingest.yaml
argo submit --serviceaccount=argo-workflow -p 'workflow-table-name=sourceTable_visit' -p 'prefix=PREOPS-863' manifests/preingest.yaml
argo submit --serviceaccount=argo-workflow -p 'workflow-table-name=forcedSourceTable' -p 'prefix=PREOPS-863' manifests/preingest.yaml
12 changes: 8 additions & 4 deletions manifests/preingest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
workflows.argoproj.io/version: ">= 3.0.0"
spec:
entrypoint: main
arguments:
parameters:
- name: workflow-table-name
- name: prefix
volumes:
- name: secret-vol
secret:
Expand All @@ -27,7 +31,7 @@ spec:
- name: input-folder
gcs:
bucket: qserv-us-central1-argo-artifact
key: dc2/w_2021_40/input-parquet-source
key: "dp02/{{workflow.parameters.prefix}}/{{workflow.parameters.workflow-table-name}}/input-parquet"
serviceAccountKeySecret:
name: secret-argo-gcs-artifact
key: qserv-dev-argo.json
Expand All @@ -41,21 +45,21 @@ spec:
- name: inparq
gcs:
bucket: qserv-us-central1-argo-artifact
key: "dc2/w_2021_40/input-parquet-source/{{item}}"
key: "dp02/{{workflow.parameters.prefix}}/{{workflow.parameters.workflow-table-name}}/input-parquet/{{item}}"
serviceAccountKeySecret:
name: secret-argo-gcs-artifact
key: qserv-dev-argo.json
- name: schema_abh
gcs:
bucket: qserv-us-central1-argo-artifact
key: dc2/w_2021_40/configs-source/schema.abh.source
key: "dp02/{{workflow.parameters.prefix}}/{{workflow.parameters.workflow-table-name}}/configs/schema.abh"
serviceAccountKeySecret:
name: secret-argo-gcs-artifact
key: qserv-dev-argo.json
- name: partition_config
gcs:
bucket: qserv-us-central1-argo-artifact
key: dc2/w_2021_40/configs-source/partition.json
key: "dp02/{{workflow.parameters.prefix}}/{{workflow.parameters.workflow-table-name}}/configs/partition.json"
serviceAccountKeySecret:
name: secret-argo-gcs-artifact
key: qserv-dev-argo.json
Expand Down

0 comments on commit df361e9

Please sign in to comment.