diff --git a/docs/content/en/docs/references/yaml/main.js b/docs/content/en/docs/references/yaml/main.js index fc9e106659e..bd7e0111b33 100644 --- a/docs/content/en/docs/references/yaml/main.js +++ b/docs/content/en/docs/references/yaml/main.js @@ -136,7 +136,7 @@ function* template(definitions, parentDefinition, ref, ident, parent) { yield html` - - ${v} + - ${JSON.stringify(v)} #  diff --git a/docs/content/en/schemas/v2beta9.json b/docs/content/en/schemas/v2beta9.json index f16b5c47a1a..c943ceabd39 100755 --- a/docs/content/en/schemas/v2beta9.json +++ b/docs/content/en/schemas/v2beta9.json @@ -1659,7 +1659,7 @@ "x-intellij-html-description": "environment variables passed to the kaniko pod. It also accepts environment variables via the go template syntax.", "default": "[]", "examples": [ - "{{name: \"key1\", value: \"value1\"}, {name: \"key2\", value: \"value2\"}, {name: \"key3\", value: \"'{{.ENV_VARIABLE}}'\"}\"}" + "[{\"name\": \"key1\", \"value\": \"value1\"}, {\"name\": \"key2\", \"value\": \"value2\"}, {\"name\": \"key3\", \"value\": \"'{{.ENV_VARIABLE}}'\"}]" ] }, "force": { diff --git a/pkg/skaffold/schema/latest/config.go b/pkg/skaffold/schema/latest/config.go index f60427c9d13..3483abcfcce 100644 --- a/pkg/skaffold/schema/latest/config.go +++ b/pkg/skaffold/schema/latest/config.go @@ -1068,7 +1068,7 @@ type KanikoArtifact struct { // Env are environment variables passed to the kaniko pod. // It also accepts environment variables via the go template syntax. - // For example: `{{name: "key1", value: "value1"}, {name: "key2", value: "value2"}, {name: "key3", value: "'{{.ENV_VARIABLE}}'"}"}`. + // For example: `[{"name": "key1", "value": "value1"}, {"name": "key2", "value": "value2"}, {"name": "key3", "value": "'{{.ENV_VARIABLE}}'"}]`. Env []v1.EnvVar `yaml:"env,omitempty"` // Cache configures Kaniko caching. If a cache is specified, Kaniko will