- func DeepCopy(fs1, fs2 filesys.FileSystem) error
- func LoadManifests(fs *ManifestFileSystem, baseDir string, channel *loaders.Channel) error
- func LoadPackages(fs *ManifestFileSystem, baseDir string, channel string) error
- type ManifestFileSystem
const ( // DefaultChannelDir is the default name of the directory containing // channel and packages files. DefaultChannelDir = "channels" // DefaultChannelName is the default name of a channel. DefaultChannelName = "stable" )
This section is empty.
DeepCopy performs a deep copy of the FileSystem from fs1 to fs2.
func LoadManifests ¶
LoadManifests takes a filesystem, a base directory path that contains the manifests and a Channel, and loads the manifests into the filesystem. The copied package manifests are copied at the root of the filesystem in a directory named the same as the package name. These manifests are not versioned. Example filesystem structure once the manifests are loaded:
/ |-- guestbook | |-- role.yaml | |-- service_account.yaml | |-- registry
|-- db.yaml |-- frontend.yaml
func LoadPackages ¶
LoadPackages takes a filesystem, a base directory path and a channel name, and loads the versioned packages specified in the channel into the filesystem. The channel is based on a Channel type defined in the kubebuilder-declarative-pattern addon loaders package. Example channel:
manifests: - name: guestbook
- name: registry
type ManifestFileSystem ¶
ManifestFileSystem is a wrapper around the kustomize filesys.Filesystem with methods to copy all the files and directories of a manifest directory. This can be backed by a disk or an in-memory filesystem.
NewLoadedManifestFileSystem creates and returns a new ManifestFileSystem, loaded with the manifests.
Copy reads a file from disk and copies it into manifest filesystem.
func (*ManifestFileSystem) CopyDirectory ¶
CopyDirectory recursively copies directory content from disk filesystem to the manifest filesystem.