From f78c0f230fff13970a1646da130425f08114214c Mon Sep 17 00:00:00 2001 From: Gaurav Ghosh Date: Wed, 4 Jan 2023 11:40:00 -0800 Subject: [PATCH] docs: update docs for new `runtimeType` field --- docs-v2/content/en/docs/workflows/debug.md | 7 +++++-- docs-v2/content/en/samples/debug/runtime-type.yaml | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 docs-v2/content/en/samples/debug/runtime-type.yaml diff --git a/docs-v2/content/en/docs/workflows/debug.md b/docs-v2/content/en/docs/workflows/debug.md index 31e90c31122..249f1954a90 100644 --- a/docs-v2/content/en/docs/workflows/debug.md +++ b/docs-v2/content/en/docs/workflows/debug.md @@ -233,8 +233,11 @@ your base image. (`//` comments must be stripped.) ## Supported Language Runtimes -This section describes how `debug` recognizes the language runtime used in a -container image for specific language runtimes. +The language runtime for the artifacts can be specified in the `skaffold.yaml` file. +{{% readfile file="samples/debug/runtime-type.yaml" %}} + +Otherwise Skaffold `debug` recognizes the language runtime used in a +container image for specific language runtimes using standard heuristics described below. {{% tabs %}} {{% tab "GO" %}} diff --git a/docs-v2/content/en/samples/debug/runtime-type.yaml b/docs-v2/content/en/samples/debug/runtime-type.yaml new file mode 100644 index 00000000000..75353cf6cc5 --- /dev/null +++ b/docs-v2/content/en/samples/debug/runtime-type.yaml @@ -0,0 +1,5 @@ +build: + artifacts: + - image: gcr.io/k8s-skaffold/example + runtimeType: go # specify one of `go`, `nodejs`, `jvm`, `python`, or `netcore` + local: {}