Delete penultimate use of Patches field.

This commit is contained in:
Jeffrey Regan
2018-10-18 13:09:25 -07:00
parent 37802e1026
commit 3e0f5ea327
4 changed files with 57 additions and 11 deletions

View File

@@ -89,7 +89,7 @@ func (o *addPatchOptions) RunAddPatch(fSys fs.FileSystem) error {
}
for _, p := range patches {
if patch.Exist(m.PatchesStrategicMerge, p) || kustfile.StringInSlice(p, m.Patches) {
if patch.Exist(m.PatchesStrategicMerge, p) {
log.Printf("patch %s already in kustomization file", p)
continue
}