overlay

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package overlay describes which values layers make up each application of a target type, independent of where that list comes from: a kubriX target chart, a .kubrix-values.yaml project config or files given on the command line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelmValues

func HelmValues(layers []engine.Layer, sets []engine.SetSource) (map[string]any, error)

HelmValues are the values helm itself computes from the layers and set sources, as for `helm template -f … --set …`: layers merge recursively with later maps winning, then each set expression is parsed into the result, so --set servers[0].host=x changes one list item where a values layer would replace the list.

Types

type App

type App struct {
	Name  string
	Chart string
	// Dir is the chart's directory relative to the repository, when the overlay knows it (the target chart does).
	Dir    string
	Layers []engine.Layer
	Sets   []engine.SetSource
}

App is one application: the chart it installs, its values layers in merge order and the set sources applied after them.

func (App) LayerNames

func (a App) LayerNames() []string

LayerNames are the names of the application's layers in merge order.

type Overlay

type Overlay struct {
	TargetType string
	Apps       []App
	Warnings   []string
}

Overlay is the applications of one target type, sorted by name, and what was skipped or doubtful while resolving them.

func (*Overlay) App

func (o *Overlay) App(name string) (App, error)

App returns the named application.

func (*Overlay) Merge

func (o *Overlay) Merge(app App, userSets []engine.SetSource) (*engine.Result, error)

Merge merges the application's layers and set sources, then the user's set sources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL