pkg/k8sutil: expose name manifest field via Name() function
As previously, it would make more sense to just make the struct field
exported, but adding a method just makes it simpler to modify for now,
as then there is no need to change other existing code.
@@ -55,6 +55,10 @@ func (m manifest) Raw() []byte {
return m.raw
}
+func (m manifest) Name() string {
+ return m.name
+}
+
// LoadManifests parses a map of Kubernetes manifests.
func LoadManifests(files map[string]string) ([]manifest, error) {
var manifests []manifest
