update edit fix to convert the old patches to patchesStrategicMerge

This commit is contained in:
jingfangliu
2019-07-17 14:16:33 -07:00
parent 3cb6c7f1f4
commit 8c53d77111
8 changed files with 245 additions and 21 deletions

View File

@@ -200,7 +200,7 @@ func (kt *KustTarget) configureBuiltinPatchTransformer(
Target *types.Selector `json:"target,omitempty" yaml:"target,omitempty"`
}
for _, patch := range kt.kustomization.Patches {
c.Target = &patch.Target
c.Target = patch.Target
c.Patch = patch.Patch
c.Path = patch.Path
p := builtin.NewPatchTransformerPlugin()