mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Add tests for patch/resource reading.
This commit is contained in:
@@ -157,7 +157,7 @@ func (kt *KustTarget) loadCustomizedResMap() (resmap.ResMap, error) {
|
||||
kt.kustomization.PatchesStrategicMerge = patch.Append(
|
||||
kt.kustomization.PatchesStrategicMerge,
|
||||
kt.kustomization.Patches...)
|
||||
patches, err := resmap.NewResourceSliceFromPatches(
|
||||
patches, err := resource.NewResourceSliceFromPatches(
|
||||
kt.ldr, kt.kustomization.PatchesStrategicMerge)
|
||||
if err != nil {
|
||||
errs.Append(errors.Wrap(err, "NewResourceSliceFromPatches"))
|
||||
|
||||
Reference in New Issue
Block a user