diff --git a/templates/argo-tasks/README.md b/templates/argo-tasks/README.md index cc44fd635..063f16dd2 100644 --- a/templates/argo-tasks/README.md +++ b/templates/argo-tasks/README.md @@ -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 diff --git a/templates/argo-tasks/stac-validate.yml b/templates/argo-tasks/stac-validate.yml index 77b8d6ba4..a28112c3c 100644 --- a/templates/argo-tasks/stac-validate.yml +++ b/templates/argo-tasks/stac-validate.yml @@ -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 @@ -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}}' diff --git a/workflows/stac/stac-validate-parallel.yaml b/workflows/stac/stac-validate-parallel.yaml index 7895d390b..f8de21666 100644 --- a/workflows/stac/stac-validate-parallel.yaml +++ b/workflows/stac/stac-validate-parallel.yaml @@ -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'