Skip to content

Commit

Permalink
Improve explanation of the Target config field
Browse files Browse the repository at this point in the history
Clarify how a blank value works, and also how users can use a pattern
with wildcards.
  • Loading branch information
halvards committed Aug 16, 2021
1 parent 7fde494 commit edc54d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/design_proposals/ko-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ Adding the ko builder requires making config changes to the Skaffold schema.

// Target is the location of the main package.
// If target is specified as a relative path, it is relative to the `context` directory.
// If target is empty, the ko builder looks for the main package in the `context` directory.
// If target is empty, the ko builder looks for the main package in the `context` directory only, but not in any subdirectories.
// If target is a pattern with wildcards, such as `./...`, the expansion must contain only one main package, otherwise ko fails.
// Target is ignored if the `ImageName` starts with `ko://`.
// Example: `./cmd/foo`
Target string `yaml:"target,omitempty"`
Expand Down

0 comments on commit edc54d1

Please sign in to comment.