-
Notifications
You must be signed in to change notification settings - Fork 2
feat: format (pretty-print) STAC files TDE-759 #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
d1d4df9
47343a9
bd4ce0d
6e2e3fc
c416047
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: WorkflowTemplate | ||
| metadata: | ||
| name: tpl-at-format | ||
| spec: | ||
| templateDefaults: | ||
| container: | ||
| imagePullPolicy: Always | ||
| entrypoint: main | ||
| templates: | ||
| - name: main | ||
| inputs: | ||
| parameters: | ||
| - name: source | ||
| description: Path to format files from | ||
| - name: target | ||
| description: (Optional) Target directory (testing) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is empty, does it format files in-place? As a newbie, that might be useful clarification. If we are relying on third party functionality, it might be OK to just link to the (appropriate version of the) reference somewhere. |
||
| default: "" | ||
| - name: fix-content-type | ||
| description: (Optional) Set the content-type to S3 object | ||
| default: "" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What are valid values here? Are these MIME types, as used by the HTTP |
||
| - name: version | ||
| description: argo-task Container version to use | ||
| default: "v2" | ||
|
|
||
| container: | ||
| image: "019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/eks:argo-tasks-{{= inputs.parameters.version }}" | ||
| command: [node, /app/index.js] | ||
| env: | ||
| - name: AWS_ROLE_CONFIG_PATH | ||
| value: s3://linz-bucket-config/config.json | ||
| args: | ||
| - "pretty-print" | ||
| - "{{= inputs.parameters.source }}" | ||
| - "{{= sprig.empty(inputs.parameters.target) ? '' : '--target=' + inputs.parameters.target }}" | ||
| - "{{= sprig.empty(inputs.parameters['fix-content-type']) ? '' : '--fix-content-type=' + inputs.parameters['fix-content-type'] }}" | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's "at" in this? "Argo task"? Would including "stac" somewhere be clearer, such as "tpl-at-format-stac"?
Also, other templates have names like "create-collection". Is "tpl-at-" redundant?