Documentation ¶
Overview ¶
Package carvelhelpers implements wrapper functions to use carvel tooling
Index ¶
- func CarvelPackageProcessor(pkgDir, image string, valuesFiles ...string) ([]byte, error)
- func DownloadImageBundleAndSaveFilesToDir(imageWithTag, dir string) error
- func DownloadImageBundleAndSaveFilesToTempDir(imageWithTag string) (string, error)
- func GetFilesMapFromImage(imageWithTag string) (map[string][]byte, error)
- func ProcessCarvelPackage(image string, valuesFiles ...string) ([]byte, error)
- func ProcessYTTPackage(configDirs ...string) ([]byte, error)
- func ResolveImagesInPackage(files []string) ([]byte, error)
- type NoopUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CarvelPackageProcessor ¶
CarvelPackageProcessor processes a carvel package and returns a configuration YAML file
func DownloadImageBundleAndSaveFilesToDir ¶
DownloadImageBundleAndSaveFilesToDir reads OCI image and saves file to the specified directory
func DownloadImageBundleAndSaveFilesToTempDir ¶
DownloadImageBundleAndSaveFilesToTempDir reads OCI image and saves file to temp dir returns temp configuration dir with downloaded imgpkg bundle
func GetFilesMapFromImage ¶
GetFilesMapFromImage returns map of files metadata It takes os environment variables for custom repository and proxy configuration into account while downloading image from repository
func ProcessCarvelPackage ¶
ProcessCarvelPackage processes a carvel package and returns a configuration YAML Downloads package to temporary directory and processes the package by implementing equivalent functionality as the command: `ytt -f <path> [-f <values-files>] | kbld -f -`
func ProcessYTTPackage ¶
ProcessYTTPackage processes configuration directory with ytt tool Implements similar functionality as `ytt -f <config-dir>`
func ResolveImagesInPackage ¶
ResolveImagesInPackage resolves the images using kbld tool Implements similar functionality as `kbld -f <file1> -f <file2>`