You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/schemas/v2beta28.json
+1-11
Original file line number
Diff line number
Diff line change
@@ -2714,15 +2714,6 @@
2714
2714
"type": "string",
2715
2715
"description": "location of the main package. It is the pattern passed to `go build`. If main is specified as a relative path, it is relative to the `context` directory. If main is empty, the ko builder uses a default value of `.`. If main is a pattern with wildcards, such as `./...`, the expansion must contain only one main package, otherwise ko fails. Main is ignored if the `ImageName` starts with `ko://`. Example: `./cmd/foo`.",
2716
2716
"x-intellij-html-description": "location of the main package. It is the pattern passed to <code>go build</code>. If main is specified as a relative path, it is relative to the <code>context</code> directory. If main is empty, the ko builder uses a default value of <code>.</code>. If main is a pattern with wildcards, such as <code>./...</code>, the expansion must contain only one main package, otherwise ko fails. Main is ignored if the <code>ImageName</code> starts with <code>ko://</code>. Example: <code>./cmd/foo</code>."
2717
-
},
2718
-
"platforms": {
2719
-
"items": {
2720
-
"type": "string"
2721
-
},
2722
-
"type": "array",
2723
-
"description": "list of platforms to build images for. Each platform is of the format `os[/arch[/variant]]`, e.g., `linux/amd64`. Use `[\"all\"]` to build for all platforms supported by the base image. If empty, the builder uses the ko default (`[\"linux/amd64\"]`). Example: `[\"linux/amd64\", \"linux/arm64\"]`.",
2724
-
"x-intellij-html-description": "list of platforms to build images for. Each platform is of the format <code>os[/arch[/variant]]</code>, e.g., <code>linux/amd64</code>. Use <code>["all"]</code> to build for all platforms supported by the base image. If empty, the builder uses the ko default (<code>["linux/amd64"]</code>). Example: <code>["linux/amd64", "linux/arm64"]</code>.",
return"", fmt.Errorf("default repo must be set when using the 'ko://' prefix and pushing to a registry: %s, see https://skaffold.dev/docs/environment/image-registries/", a.ImageName)
43
43
}
44
-
koBuilder, err:=b.newKoBuilder(ctx, a)
44
+
koBuilder, err:=b.newKoBuilder(ctx, a, platforms)
45
45
iferr!=nil {
46
46
return"", fmt.Errorf("error creating ko builder: %w", err)
0 commit comments