Skip to content
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

feat: add argo schema url for all argo docs #226

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions templates/argo-tasks/copy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json
blacha marked this conversation as resolved.
Show resolved Hide resolved

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -8,6 +10,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
entrypoint: main
templates:
- name: main
Expand Down
3 changes: 3 additions & 0 deletions templates/argo-tasks/create-manifest.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -8,6 +10,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
entrypoint: main
templates:
- name: main
Expand Down
3 changes: 3 additions & 0 deletions templates/argo-tasks/group.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -8,6 +10,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
entrypoint: main
templates:
- name: main
Expand Down
2 changes: 2 additions & 0 deletions templates/argo-tasks/push-to-github.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -8,6 +9,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
entrypoint: main
templates:
- name: main
Expand Down
3 changes: 3 additions & 0 deletions templates/argo-tasks/tile-index-validate.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -8,6 +10,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
entrypoint: main
templates:
- name: main
Expand Down
4 changes: 3 additions & 1 deletion workflows/basemaps/create-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -15,6 +16,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
4 changes: 3 additions & 1 deletion workflows/basemaps/create-overview-all.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand All @@ -16,6 +17,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
4 changes: 3 additions & 1 deletion workflows/basemaps/create-overview.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand All @@ -17,6 +18,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
7 changes: 5 additions & 2 deletions workflows/basemaps/imagery-import-cogify.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -14,6 +16,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
arguments:
parameters:
- name: version_basemaps_cli
Expand Down Expand Up @@ -66,11 +69,11 @@ spec:

- name: cutline_blend
description: Blending to use for cutline see gdal_translate#cblend
value: 20
value: '20'

- name: group_size
description: How many items to pass to each create-cog job
value: 20
value: '20'

templates:
# Main entrypoint into the workflow
Expand Down
13 changes: 8 additions & 5 deletions workflows/basemaps/imagery-import.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand Down Expand Up @@ -37,14 +39,14 @@ spec:
- name: cutline
value: 's3://linz-basemaps-source/cutline/2020-05-07-cutline-nz-coasts-rural-and-urban.geojson'
- name: blend
value: 20
value: '20'
- name: aligned-level
value: 6
value: '6'
- name: create-pull-request
value: true
value: 'true'
enum:
- true
- false
- 'true'
- 'false'

volumes:
- name: secret-vol
Expand All @@ -54,6 +56,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
inputs:
Expand Down
3 changes: 3 additions & 0 deletions workflows/basemaps/mapsheet-json.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -22,6 +24,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
10 changes: 6 additions & 4 deletions workflows/basemaps/vector-etl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -17,13 +18,14 @@ spec:
- 'linz-basemaps'
- 'linz-basemaps-staging'
- name: create-pull-request
value: true
value: 'true'
enum:
- true
- false
- 'true'
- 'false'
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
5 changes: 3 additions & 2 deletions workflows/imagery/ascii-standardise-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand Down Expand Up @@ -49,6 +50,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down Expand Up @@ -113,7 +115,6 @@ spec:
path: '/tmp/location'

- name: aws-list
inputs:
container:
image: '019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/argo-tasks:{{workflow.parameters.version-argo-tasks}}'
command: [node, /app/index.js]
Expand Down
5 changes: 4 additions & 1 deletion workflows/imagery/publish-copy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand Down Expand Up @@ -39,6 +40,8 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''

templates:
- name: main
inputs:
Expand Down
4 changes: 3 additions & 1 deletion workflows/imagery/publish-odr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand Down Expand Up @@ -39,6 +40,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
inputs:
Expand Down
4 changes: 3 additions & 1 deletion workflows/imagery/standardising-publish-import.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand Down Expand Up @@ -49,6 +50,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
steps:
Expand Down
8 changes: 5 additions & 3 deletions workflows/imagery/standardising.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand Down Expand Up @@ -38,12 +39,12 @@ spec:
- '50000'
- 'None'
- name: validate
value: true
value: 'true'
enum:
- 'false'
- 'true'
- name: retile
value: false
value: 'false'
enum:
- 'true'
- 'false'
Expand Down Expand Up @@ -210,6 +211,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
inputs:
Expand Down
3 changes: 3 additions & 0 deletions workflows/imagery/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand All @@ -14,6 +16,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: test-script
script:
Expand Down
2 changes: 2 additions & 0 deletions workflows/test/env.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand Down
4 changes: 3 additions & 1 deletion workflows/test/flatten.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
Expand All @@ -25,6 +26,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
3 changes: 3 additions & 0 deletions workflows/test/list.arm.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

# Example of using ARM + Spot instances for processing
apiVersion: argoproj.io/v1alpha1
kind: Workflow
Expand All @@ -17,6 +19,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
3 changes: 3 additions & 0 deletions workflows/test/list.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand All @@ -14,6 +16,7 @@ spec:
templateDefaults:
container:
imagePullPolicy: Always
image: ''
templates:
- name: main
dag:
Expand Down
4 changes: 3 additions & 1 deletion workflows/test/sleep.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/argoproj/argo-workflows/v3.4.13/api/jsonschema/schema.json

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
Expand All @@ -13,5 +15,5 @@ spec:
requests:
memory: 3.9Gi
cpu: 2000m
image: ubuntu:22.04
image: 019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/argo-tasks:latest
blacha marked this conversation as resolved.
Show resolved Hide resolved
command: ['sleep', '3600']
Loading