Merge pull request #4895 from KnVerey/remove-local-last

Remove local-only resources at the last minute
This commit is contained in:
Kubernetes Prow Robot
2022-12-01 13:20:00 -08:00
committed by GitHub
2 changed files with 120 additions and 4 deletions

View File

@@ -158,6 +158,11 @@ func (kt *KustTarget) makeCustomizedResMap() (resmap.ResMap, error) {
return nil, err
}
err = kt.IgnoreLocal(ra)
if err != nil {
return nil, err
}
return ra.ResMap(), nil
}
@@ -238,10 +243,6 @@ func (kt *KustTarget) accumulateTarget(ra *accumulator.ResAccumulator) (
return nil, errors.Wrapf(
err, "merging vars %v", kt.kustomization.Vars)
}
err = kt.IgnoreLocal(ra)
if err != nil {
return nil, err
}
return ra, nil
}