Throwing error instead of silently ignoring invalid input

This commit is contained in:
m-Bilal
2022-01-01 21:52:37 +05:30
parent b28f1e55b7
commit ff7b2f20d5
4 changed files with 22 additions and 11 deletions

View File

@@ -212,7 +212,7 @@ type ResMap interface {
// This is a filter; it excludes things that cannot be
// referenced by the resource, e.g. objects in other
// namespaces. Cluster wide objects are never excluded.
SubsetThatCouldBeReferencedByResource(*resource.Resource) ResMap
SubsetThatCouldBeReferencedByResource(*resource.Resource) (ResMap, error)
// DeAnchor replaces YAML aliases with structured data copied from anchors.
// This cannot be undone; if desired, call DeepCopy first.