mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Merge pull request #5413 from crenshaw-dev/patch-1
chore(docs): fix grammar error in comment
This commit is contained in:
@@ -176,6 +176,9 @@ func LoadFunctionConfig(src *yaml.RNode, api interface{}) error {
|
|||||||
return schemaValidationError
|
return schemaValidationError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// combineErrors produces a CompositeValidationError for the given schemaErr and givenErr.
|
||||||
|
// If either is already a CompsiteError, its constituent errors become part of the new
|
||||||
|
// composite error. If both given errors are nil, this function returns nil.
|
||||||
func combineErrors(schemaErr, customErr error) error {
|
func combineErrors(schemaErr, customErr error) error {
|
||||||
combined := validationErrors.CompositeValidationError()
|
combined := validationErrors.CompositeValidationError()
|
||||||
if compositeSchemaErr, ok := schemaErr.(*validationErrors.CompositeError); ok {
|
if compositeSchemaErr, ok := schemaErr.(*validationErrors.CompositeError); ok {
|
||||||
@@ -227,7 +230,7 @@ type TemplateProcessor struct {
|
|||||||
PatchTemplates []PatchTemplate
|
PatchTemplates []PatchTemplate
|
||||||
|
|
||||||
// MergeResources, if set to true, will cause the resources in ResourceList.items to be
|
// MergeResources, if set to true, will cause the resources in ResourceList.items to be
|
||||||
// will be applied as patches on any matching resources generated by ResourceTemplates.
|
// applied as patches on any matching resources generated by ResourceTemplates.
|
||||||
MergeResources bool
|
MergeResources bool
|
||||||
|
|
||||||
// PreProcessFilters provides a hook to manipulate the ResourceList's items or config after
|
// PreProcessFilters provides a hook to manipulate the ResourceList's items or config after
|
||||||
|
|||||||
Reference in New Issue
Block a user