Skip to content

Commit

Permalink
remove conflicting file
Browse files Browse the repository at this point in the history
Signed-off-by: realanna <[email protected]>

fix yaml

Signed-off-by: realanna <[email protected]>

Update python-runtime/README.md

Co-authored-by: Meg McRoberts <[email protected]>
Signed-off-by: RealAnna <[email protected]>

Update python-runtime/README.md

Co-authored-by: Meg McRoberts <[email protected]>
Signed-off-by: RealAnna <[email protected]>

fix yaml

Signed-off-by: realanna <[email protected]>

chore: website edit links should point to page

Signed-off-by: realanna <[email protected]>

chore: website edit links should point to page

Signed-off-by: realanna <[email protected]>

feat: add linkable github

Signed-off-by: realanna <[email protected]>

feat: add linkable github

Signed-off-by: realanna <[email protected]>

chore: add example for pyhton taskdef

Signed-off-by: realanna <[email protected]>

chore: add example for pyhton taskdef

Signed-off-by: realanna <[email protected]>

chore: add example for pyhton taskdef

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

Apply suggestions from code review

Co-authored-by: Moritz Wiesinger <[email protected]>
Signed-off-by: RealAnna <[email protected]>

Update docs/content/en/docs/implementing/tasks/python.md

Co-authored-by: Moritz Wiesinger <[email protected]>
Signed-off-by: RealAnna <[email protected]>

Update docs/content/en/docs/implementing/tasks/python.md

Co-authored-by: Moritz Wiesinger <[email protected]>
Signed-off-by: RealAnna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

fix: remove space

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>

docs: adds python runtime doc

Signed-off-by: realanna <[email protected]>
  • Loading branch information
RealAnna committed Jun 20, 2023
1 parent 1384679 commit 670639e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module:
- "mentorship"
- source: "README.md"
target: "./content/community/_index.md"

proxy: direct
languages:
en:
Expand All @@ -40,3 +41,6 @@ menu:
rel: external
url: https://v1.keptn.sh/
weight: 1

ignoreErrors:
- "error-remote-getjson"
2 changes: 2 additions & 0 deletions docs/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ versions:
mermaid:
enable: true

currentversion: main

links:
developer:
- desc: Development takes place here!
Expand Down
1 change: 1 addition & 0 deletions docs/content/en/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ linktitle: Docs
description: Learn how to use Keptn.
cascade:
type: docs
currentversion: main
---
11 changes: 11 additions & 0 deletions docs/layouts/shortcodes/injectYaml.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

{{ $u := printf "%s%s%s" "https://raw.githubusercontent.com/keptn/lifecycle-toolkit/" (.Page.Params.currentversion) (.Get "path") }}
{{ with resources.GetRemote $u }}
{{ with .Err }}
{{ errorf "%s" . }}
{{ else }}
{{- highlight (.Content | htmlUnescape | safeHTML ) "yaml" -}}
{{ end }}
{{ else }}
{{ errorf "Unable to get remote resource." }}
{{ end }}
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish = "public/"
# On netlify our branch will always be the one we are currently building for
# important information regarding naming
# https://gohugo.io/getting-started/configuration/#configure-with-environment-variables
command = "HUGOxPARAMSxGITHUB_BRANCH=$BRANCH hugo -b $DEPLOY_PRIME_URL"
command = "HUGOxPARAMSxGITHUB_BRANCH=$BRANCH HUGOxPARAMSxCURRENTVERSION=$BRANCH hugo -b $DEPLOY_PRIME_URL"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../netlify.toml"

[build.environment]
Expand All @@ -27,4 +27,4 @@ HUGO_ENV = "production"
# On netlify our branch will always be the one we are currently building for
# important information regarding naming
# https://gohugo.io/getting-started/configuration/#configure-with-environment-variables
command = "HUGOxPARAMSxGITHUB_BRANCH=$BRANCH hugo -b $URL"
command = "HUGOxPARAMSxGITHUB_BRANCH=$BRANCH HUGOxPARAMSxCURRENTVERSION=$BRANCH hugo -b $URL"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: lifecycle.keptn.sh/v1alpha3
kind: KeptnTaskDefinition
metadata:
name: scheduled-deployment
name: scheduled-deployment-inline
spec:
python:
parameters:
Expand Down
7 changes: 5 additions & 2 deletions python-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ docker build -t lifecycle-toolkit/python-runtime:${VERSION} .

## Usage

The Keptn python runtime uses python3, and enables the follwing packages: requests, json, git, yaml
The Keptn `python-runtime` runner uses python3
and enables the following packages: requests, json, git, yaml

The Keptn Lifecycle Toolkit uses this runtime to run [KeptnTask](https://lifecycle.keptn.sh/docs/tasks/write-tasks/)
The Keptn Lifecycle Toolkit uses this runner to execute tasks defined as
[KeptnTaskDefinition](https://lifecycle.keptn.sh/docs/yaml-crd-ref/taskdefinition/)
resources.
for pre- and post-checks.

`KeptnTask`s can be tested locally with the runtime using the following commands.
Expand Down

0 comments on commit 670639e

Please sign in to comment.