mirror of https://github.com/fluxcd/pkg.git
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:
parent
823e780ea1
commit
38913287ea
|
|
@ -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"`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue