Skip to content

Commit 5395f74

Browse files
committed
fix: command name
1 parent a53c04d commit 5395f74

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

templates/argo-tasks/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- [List](##argo-tasks/list)
99
- [Push to Github](##argo-tasks/push-to-github)
1010
- [Generate Path](##argo-tasks/generate-path)
11-
- [STAC read collection](##argo-tasks/stac-read-collection)
11+
- [STAC collection output](##argo-tasks/stac-collection-output)
1212
- [STAC setup](##argo-tasks/stac-setup)
1313
- [STAC validate](##argo-tasks/stac-validate)
1414
- [Identify updated items](##argo-tasks/identify-updated-items)
@@ -227,17 +227,17 @@ arguments:
227227
value: '{{inputs.parameters.source}}'
228228
```
229229

230-
## argo-tasks/stac-read-collection
230+
## argo-tasks/stac-collection-output
231231

232-
Template to read a STAC collection from the ODR; can add more outputs as required. Currently outputs `scale`
232+
Template to read a STAC collection from the ODR and write STAC metadata as workflow output parameters; can add more outputs as required. Currently outputs `scale`
233233
See (https://github.com/linz/argo-tasks#stac-read-collection)
234234

235235
### Template Usage
236236

237237
```yaml
238-
- name: stac-read-collection
238+
- name: get-scale
239239
templateRef:
240-
name: tpl-at-stac-read-collection
240+
name: tpl-at-stac-collection-output
241241
template: main
242242
arguments:
243243
parameters:

templates/argo-tasks/stac-read-collection.yml renamed to templates/argo-tasks/stac-collection-output.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ apiVersion: argoproj.io/v1alpha1
44
kind: WorkflowTemplate
55
metadata:
66
# Template from linz/argo-tasks
7-
# see https://github.com/linz/argo-tasks#stac-read-collection
8-
name: tpl-at-stac-read-collection
7+
# see https://github.com/linz/argo-tasks#stac-collection-output
8+
name: tpl-at-stac-collection-output
99
spec:
10-
templateDefaults:
11-
container:
12-
imagePullPolicy: Always
13-
image: ''
1410
entrypoint: main
1511
templates:
1612
- name: main
@@ -25,17 +21,18 @@ spec:
2521

2622
container:
2723
image: '019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/argo-tasks:{{=inputs.parameters.version}}'
24+
imagePullPolicy: Always
2825
env:
2926
- name: AWS_ROLE_CONFIG_PATH
3027
value: s3://linz-bucket-config/config.json
3128
args:
3229
- 'stac'
33-
- 'read-collection'
34-
- "{{= sprig.empty(inputs.parameters.odr_url) ? '' : '--odr-url=' + inputs.parameters.odr_url }}"
30+
- 'collection-output'
31+
- "{{ '--odr-url=' + inputs.parameters.odr_url }}"
3532

3633
outputs:
3734
parameters:
3835
- name: scale
3936
description: Scale of the ODR dataset
4037
valueFrom:
41-
path: '/tmp/stac-read-collection/scale'
38+
path: '/tmp/stac-collection-output/scale'

0 commit comments

Comments
 (0)