Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWerfConfig ¶
Types ¶
type ModuleImageWerfFile ¶ added in v0.1.84
type ModuleImageWerfFile struct {
// RelPath is the module-relative path of the source werf.inc.yaml file.
RelPath string
// Content is the rendered werf.inc.yaml content.
Content string
}
ModuleImageWerfFile holds a rendered werf.inc.yaml file together with its path relative to the module directory (e.g. "images/<name>/werf.inc.yaml").
func GetModuleImagesWerfFiles ¶ added in v0.1.84
func GetModuleImagesWerfFiles(moduleDir string) ([]ModuleImageWerfFile, error)
GetModuleImagesWerfFiles renders every "images/*/werf.inc.yaml" file found in the module directory and returns them keyed by their module-relative path.
Unlike GetWerfConfig, it does not walk up to the repository root werf.yaml and does not aggregate stages/base images from outside the module. Only the module's own images are considered. Files that cannot be rendered in isolation (e.g. they rely on build context that is only available to the full werf pipeline) are skipped rather than reported as errors.