type Kustomizer … // MakeKustomizer returns an instance of Kustomizer. func MakeKustomizer(o *Options) *Kustomizer { … } // Run performs a kustomization. // // It reads given path from the given file system, interprets it as // a kustomization.yaml file, perform the kustomization it represents, // and return the resulting resources. // // Any files referenced by the kustomization must be present on the // filesystem. One may call Run any number of times, on any number // of internal paths (e.g. the filesystem may contain multiple overlays, // and Run can be called on each of them). func (b *Kustomizer) Run( fSys filesys.FileSystem, path string) (resmap.ResMap, error) { … } func (b *Kustomizer) applySortOrder(m resmap.ResMap, kt *target.KustTarget) error { … }