Merge pull request #4357 from natasha41575/TransformerAnnotations

define methods, types, and unit tests for transformer annotations
This commit is contained in:
Kubernetes Prow Robot
2022-01-10 15:32:28 -08:00
committed by GitHub
10 changed files with 428 additions and 15 deletions

View File

@@ -502,7 +502,7 @@ func (kt *KustTarget) accumulateFile(
if err != nil {
return errors.Wrapf(err, "cannot add path annotation for '%s'", path)
}
err = resources.AnnotateAll(utils.OriginAnnotation, originAnno)
err = resources.AnnotateAll(utils.OriginAnnotationKey, originAnno)
if err != nil || originAnno == "" {
return errors.Wrapf(err, "cannot add path annotation for '%s'", path)
}