Remove file support from Kustomize Patch type docs

The Kustomize Patch API type only supports inlined patch
definitions and does not support reading patches from a
file. Updating the godoc comments for the type to remove
any mention of reading patch definitions from a file and
make it clear that only inline patches are supported.

Signed-off-by: sbernheim <1707604+sbernheim@users.noreply.github.com>
This commit is contained in:
sbernheim 2021-11-05 13:51:31 -04:00
parent 823e780ea1
commit 38913287ea
No known key found for this signature in database
GPG Key ID: A7CEC3471166D9B5
1 changed files with 3 additions and 2 deletions

View File

@ -83,10 +83,11 @@ type Selector struct {
LabelSelector string `json:"labelSelector,omitempty"`
}
// Patch contains either a StrategicMerge or a JSON6902 patch, either a file or inline, and the target the patch should
// Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should
// be applied to.
type Patch struct {
// Patch contains the JSON6902 patch document with an array of operation objects.
// Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with
// an array of operation objects.
// +required
Patch string `json:"patch,omitempty"`