-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#### Motivation `stac-validate` is used in many places, it should be easier to maintain and reuse if it was a "template". #### Modification Create a `stac-validate` template so it can be re-use by workflows #### Checklist _If not applicable, provide explanation of why._ - [ ] Tests updated - [x] Docs updated - [x] Issue linked in Title
- Loading branch information
1 parent
5f578a6
commit 43af2ea
Showing
5 changed files
with
96 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.5.5/api/jsonschema/schema.json | ||
|
||
apiVersion: argoproj.io/v1alpha1 | ||
kind: WorkflowTemplate | ||
metadata: | ||
# Template from linz/argo-tasks | ||
# see https://github.com/linz/argo-tasks?tab=readme-ov-file#stac-validate | ||
name: tpl-at-stac-validate | ||
spec: | ||
templateDefaults: | ||
container: | ||
imagePullPolicy: Always | ||
image: '' | ||
entrypoint: main | ||
templates: | ||
- name: main | ||
inputs: | ||
parameters: | ||
- name: uri | ||
description: STAC file uri to validate | ||
default: '' | ||
|
||
- name: recursive | ||
description: Follow and validate STAC links | ||
default: 'true' | ||
|
||
- name: concurrency | ||
description: Number of requests to run concurrently | ||
default: '50' | ||
|
||
- name: checksum | ||
description: Validate the file:checksum if it exists | ||
default: 'false' | ||
|
||
- name: version | ||
description: container version to use | ||
default: 'v3' | ||
|
||
container: | ||
image: '019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/argo-tasks:{{=sprig.trim(inputs.parameters.version)}}' | ||
resources: | ||
requests: | ||
cpu: 15000m | ||
memory: 7.8Gi | ||
command: [node, /app/index.js] | ||
env: | ||
- name: AWS_ROLE_CONFIG_PATH | ||
value: s3://linz-bucket-config/config.json | ||
args: | ||
- 'stac' | ||
- 'validate' | ||
- '--concurrency={{inputs.parameters.concurrency}}' | ||
- '--recursive={{inputs.parameters.recursive}}' | ||
- '--checksum={{inputs.parameters.checksum}}' | ||
- '{{inputs.parameters.uri}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters