Skip to content

Commit

Permalink
feat: stac-validate workflows use specific checksum flags TDE-1134
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed May 8, 2024
1 parent 89e6ae0 commit 664f738
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
6 changes: 4 additions & 2 deletions templates/argo-tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ See (https://github.com/linz/argo-tasks#stac-validate)
parameters:
- name: uri
value: 's3://my-bucket/path/collection.json'
- name: checksum
value: '{{workflow.parameters.checksum}}'
- name: checksum_assets
value: '{{workflow.parameters.checksum_assets}}'
- name: checksum_links
value: '{{workflow.parameters.checksum_links}}'
- name: recursive
value: '{{workflow.parameters.recursive}}'
- name: concurrency
Expand Down
11 changes: 8 additions & 3 deletions templates/argo-tasks/stac-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ spec:
description: Number of requests to run concurrently
default: '50'

- name: checksum
description: Validate the file:checksum if it exists
- name: checksum_assets
description: Validate the file:checksum of each asset if it exists
default: 'false'

- name: checksum_links
description: Validate the file:checksum of each link if it exists
default: 'false'

- name: version
Expand All @@ -51,5 +55,6 @@ spec:
- 'validate'
- '--concurrency={{inputs.parameters.concurrency}}'
- '--recursive={{inputs.parameters.recursive}}'
- '--checksum={{inputs.parameters.checksum}}'
- '--checksum-assets={{inputs.parameters.checksum_assets}}'
- '--checksum-links={{inputs.parameters.checksum_links}}'
- '{{inputs.parameters.uri}}'
10 changes: 8 additions & 2 deletions workflows/stac/stac-validate-parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ spec:
value: 's3://linz-imagery-staging/test/stac-validate/'
- name: include
value: 'collection.json$'
- name: checksum
description: 'Validate asset checksums.'
- name: checksum_assets
description: 'Validate the file:checksum of each asset if it exists'
value: 'false'
enum:
- 'true'
- 'false'
- name: checksum_links
description: 'Validate the file:checksum of each link if it exists'
value: 'true'
enum:
- 'false'
- 'true'
Expand Down

0 comments on commit 664f738

Please sign in to comment.