func LoadPipelineYAMLFiles(sourcePath string) (PipelineYAMLDocs, error) {
	targets := PipelineYAMLDocs{}
	err := filepath.Walk(sourcePath, func(path string, f os.FileInfo, err error) error {
		if !f.IsDir() && (strings.HasSuffix(f.Name(), ".yml") || strings.HasSuffix(f.Name(), ".yaml")) {
			docs, err := loadYAMLFile(path)
			if err != nil {
				return err
			}
			targets[path] = docs
		}
		return nil
	})
	return targets, err
}
LoadPipelineYAMLFiles returns all of the PipelineYAMLDocs in a directory
package template
import (
	"bytes"
	"embed"
	"errors"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"path/filepath"
	"strings"
	"io/fs"
	jsonpatch "github.com/evanphx/json-patch"
	"github.com/ghodss/yaml"
)
var yamlPatches embed.FS
var (
	ErrNonYAMLFileEncountered = errors.New("non-yaml file found in directory")
)
type PipelineYAMLDocs map[string]ResourceDocs