func makeBaseNode(kind, name, namespace string) (*yaml.RNode, error) { … } func makeValidatedDataMap( ldr ifc.KvLoader, name string, sources types.KvPairSources) (map[string]string, error) { … } // copyLabelsAndAnnotations copies labels and annotations from // GeneratorOptions into the given object. func copyLabelsAndAnnotations( rn *yaml.RNode, opts *types.GeneratorOptions) error { … } func setImmutable( rn *yaml.RNode, opts *types.GeneratorOptions) error { … } // ParseFileSource parses the source given. // // Acceptable formats include: // 1. source-path: the basename will become the key name // 2. source-name=source-path: the source-name will become the key name and // source-path is the path to the key file. // // Key names cannot include '='. func ParseFileSource(source string) (keyName, filePath string, err error) { … }