code: func SplitManifests(templates map[string]string) []Manifest {
  	var listManifests []Manifest
  	// extract kind and name
  	for k, v := range templates {
  		match := kindRegex.FindStringSubmatch(v)
  		h := "Unknown"
  		if len(match) == 2 {
  			h = strings.TrimSpace(match[1])
  		}
  		m := Manifest{Name: k, Content: v, Head: &releaseutil.SimpleHead{Kind: h}}
  		listManifests = append(listManifests, m)
  	}
  
  	return listManifests
  }
docs: // SplitManifests takes a map of rendered templates and splits them into the
  // detected manifests.