From e6be8c222d57a477d0e79c8388f84fbb7a9477fb Mon Sep 17 00:00:00 2001 From: Christoph Schug Date: Sun, 21 Apr 2024 11:59:31 +0200 Subject: [PATCH 1/4] fix: remove trailing whitespace --- kestra/docker/file-build.yaml | 4 ++-- kestra/docker/git-build.yaml | 4 ++-- kestra/inputs.yaml | 6 +++--- kestra/python/command.yaml | 4 ++-- kestra/python/script.yaml | 8 ++++---- kestra/variables.yaml | 4 ++-- kestra/webhook.yaml | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/kestra/docker/file-build.yaml b/kestra/docker/file-build.yaml index e0f5c23..35b1f58 100644 --- a/kestra/docker/file-build.yaml +++ b/kestra/docker/file-build.yaml @@ -1,6 +1,6 @@ # Kestra Docker File Build Template # --- -# +# # Build a Docker image from a File. # @@ -29,7 +29,7 @@ tasks: - id: build type: io.kestra.plugin.docker.Build dockerfile: "src/Dockerfile" - tags: + tags: - your-username/your-repository:your-tag push: true credentials: diff --git a/kestra/docker/git-build.yaml b/kestra/docker/git-build.yaml index 2e1f4c7..864f7a5 100644 --- a/kestra/docker/git-build.yaml +++ b/kestra/docker/git-build.yaml @@ -1,6 +1,6 @@ # Kestra Docker Git Build Template # --- -# +# # Build a Docker image from a Git repository. # @@ -20,7 +20,7 @@ tasks: - id: build type: io.kestra.plugin.docker.Build dockerfile: "src/Dockerfile" - tags: + tags: - your-username/your-repository:your-tag push: true credentials: diff --git a/kestra/inputs.yaml b/kestra/inputs.yaml index a99fb11..200e921 100644 --- a/kestra/inputs.yaml +++ b/kestra/inputs.yaml @@ -1,8 +1,8 @@ # Kestra Inputs Template # --- -# -# Inputs is a list of dynamic values passed to the flow at runtime. -# +# +# Inputs is a list of dynamic values passed to the flow at runtime. +# id: inputs namespace: # your-namespace diff --git a/kestra/python/command.yaml b/kestra/python/command.yaml index 0a42edc..e76c553 100644 --- a/kestra/python/command.yaml +++ b/kestra/python/command.yaml @@ -1,8 +1,8 @@ # Kestra Python Command Template # --- -# +# # This template is a simple Python script. -# +# # usage: # make sure the Kestra instance can access the /app/scripts/your-python-script.py file # if you're running Kestra in Docker, use a volume to mount the file/directory. diff --git a/kestra/python/script.yaml b/kestra/python/script.yaml index fd90e74..8c144c3 100644 --- a/kestra/python/script.yaml +++ b/kestra/python/script.yaml @@ -1,8 +1,8 @@ # Kestra Python Command Template # --- -# +# # This template is a simple Python script that can be used to make a request to a website and log the status code. -# +# id: python-script namespace: # your-namespace @@ -15,10 +15,10 @@ tasks: script: | from kestra import Kestra import requests - + response = requests.get('{{inputs.website}}') print(response.status_code) - + Kestra.outputs({'status': response.status_code, 'text': response.text}) beforeCommands: - pip install requests kestra diff --git a/kestra/variables.yaml b/kestra/variables.yaml index e6d6441..dcb9d80 100644 --- a/kestra/variables.yaml +++ b/kestra/variables.yaml @@ -1,7 +1,7 @@ # Kestra Variable Template # --- -# -# +# +# # id: variables diff --git a/kestra/webhook.yaml b/kestra/webhook.yaml index cf97848..67ce22c 100644 --- a/kestra/webhook.yaml +++ b/kestra/webhook.yaml @@ -1,8 +1,8 @@ # Kestra Webhook Template # --- -# +# # This template is a simple webhook trigger that can be used to trigger a task execution. -# +# # usage: # curl http://your-kestra-instance/api/v1/executions/webhook/your-namespace/your-task-id/your-secret-key From 503a6fede89a3fa25eece826405df8684b465a31 Mon Sep 17 00:00:00 2001 From: Christoph Schug Date: Sun, 21 Apr 2024 12:02:19 +0200 Subject: [PATCH 2/4] fix: add missing YAML document start tags --- kestra/docker/file-build.yaml | 1 + kestra/docker/git-build.yaml | 1 + kestra/inputs.yaml | 1 + kestra/python/command.yaml | 1 + kestra/python/script.yaml | 1 + kestra/variables.yaml | 1 + kestra/webhook.yaml | 1 + 7 files changed, 7 insertions(+) diff --git a/kestra/docker/file-build.yaml b/kestra/docker/file-build.yaml index 35b1f58..d4f15f6 100644 --- a/kestra/docker/file-build.yaml +++ b/kestra/docker/file-build.yaml @@ -1,3 +1,4 @@ +--- # Kestra Docker File Build Template # --- # diff --git a/kestra/docker/git-build.yaml b/kestra/docker/git-build.yaml index 864f7a5..4f73b06 100644 --- a/kestra/docker/git-build.yaml +++ b/kestra/docker/git-build.yaml @@ -1,3 +1,4 @@ +--- # Kestra Docker Git Build Template # --- # diff --git a/kestra/inputs.yaml b/kestra/inputs.yaml index 200e921..d9e2f1c 100644 --- a/kestra/inputs.yaml +++ b/kestra/inputs.yaml @@ -1,3 +1,4 @@ +--- # Kestra Inputs Template # --- # diff --git a/kestra/python/command.yaml b/kestra/python/command.yaml index e76c553..9f97d0e 100644 --- a/kestra/python/command.yaml +++ b/kestra/python/command.yaml @@ -1,3 +1,4 @@ +--- # Kestra Python Command Template # --- # diff --git a/kestra/python/script.yaml b/kestra/python/script.yaml index 8c144c3..38838db 100644 --- a/kestra/python/script.yaml +++ b/kestra/python/script.yaml @@ -1,3 +1,4 @@ +--- # Kestra Python Command Template # --- # diff --git a/kestra/variables.yaml b/kestra/variables.yaml index dcb9d80..10d03fd 100644 --- a/kestra/variables.yaml +++ b/kestra/variables.yaml @@ -1,3 +1,4 @@ +--- # Kestra Variable Template # --- # diff --git a/kestra/webhook.yaml b/kestra/webhook.yaml index 67ce22c..67fc14e 100644 --- a/kestra/webhook.yaml +++ b/kestra/webhook.yaml @@ -1,3 +1,4 @@ +--- # Kestra Webhook Template # --- # From da9669ac3fad7c723158b02e1a1c2e4012dbf34b Mon Sep 17 00:00:00 2001 From: Christoph Schug Date: Sun, 21 Apr 2024 12:06:15 +0200 Subject: [PATCH 3/4] fix: fix too few spaces before comments --- kestra/docker/file-build.yaml | 2 +- kestra/docker/git-build.yaml | 2 +- kestra/inputs.yaml | 2 +- kestra/python/command.yaml | 2 +- kestra/python/script.yaml | 2 +- kestra/variables.yaml | 2 +- kestra/webhook.yaml | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kestra/docker/file-build.yaml b/kestra/docker/file-build.yaml index d4f15f6..bf689af 100644 --- a/kestra/docker/file-build.yaml +++ b/kestra/docker/file-build.yaml @@ -6,7 +6,7 @@ # id: docker-file-build -namespace: # your-namespace +namespace: # your-namespace tasks: diff --git a/kestra/docker/git-build.yaml b/kestra/docker/git-build.yaml index 4f73b06..2046b70 100644 --- a/kestra/docker/git-build.yaml +++ b/kestra/docker/git-build.yaml @@ -6,7 +6,7 @@ # id: docker-git-build -namespace: # your-namespace +namespace: # your-namespace tasks: diff --git a/kestra/inputs.yaml b/kestra/inputs.yaml index d9e2f1c..432e692 100644 --- a/kestra/inputs.yaml +++ b/kestra/inputs.yaml @@ -6,7 +6,7 @@ # id: inputs -namespace: # your-namespace +namespace: # your-namespace inputs: - id: string diff --git a/kestra/python/command.yaml b/kestra/python/command.yaml index 9f97d0e..50c7b56 100644 --- a/kestra/python/command.yaml +++ b/kestra/python/command.yaml @@ -9,7 +9,7 @@ # if you're running Kestra in Docker, use a volume to mount the file/directory. id: python-command -namespace: # your-namespace +namespace: # your-namespace tasks: diff --git a/kestra/python/script.yaml b/kestra/python/script.yaml index 38838db..e69b1c7 100644 --- a/kestra/python/script.yaml +++ b/kestra/python/script.yaml @@ -6,7 +6,7 @@ # id: python-script -namespace: # your-namespace +namespace: # your-namespace tasks: diff --git a/kestra/variables.yaml b/kestra/variables.yaml index 10d03fd..10f3ef7 100644 --- a/kestra/variables.yaml +++ b/kestra/variables.yaml @@ -6,7 +6,7 @@ # id: variables -namespace: # your-namespace +namespace: # your-namespace variables: variable-name: "variable-value" diff --git a/kestra/webhook.yaml b/kestra/webhook.yaml index 67fc14e..4d54a5a 100644 --- a/kestra/webhook.yaml +++ b/kestra/webhook.yaml @@ -8,7 +8,7 @@ # curl http://your-kestra-instance/api/v1/executions/webhook/your-namespace/your-task-id/your-secret-key id: webhook -namespace: # your-namespace +namespace: # your-namespace tasks: # your-tasks @@ -16,4 +16,4 @@ tasks: triggers: - id: webhook type: io.kestra.core.models.triggers.types.Webhook - key: # your-secret-key, keep this secret! + key: # your-secret-key, keep this secret! From f3d4bb8c5f914dff12054a7455545ce85b74e042 Mon Sep 17 00:00:00 2001 From: Christoph Schug Date: Sun, 21 Apr 2024 12:07:47 +0200 Subject: [PATCH 4/4] fix: fix comment not indented like content --- kestra/webhook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kestra/webhook.yaml b/kestra/webhook.yaml index 4d54a5a..c37506e 100644 --- a/kestra/webhook.yaml +++ b/kestra/webhook.yaml @@ -11,7 +11,7 @@ id: webhook namespace: # your-namespace tasks: - # your-tasks +# - your-tasks triggers: - id: webhook