Documentation
¶
Overview ¶
Package stackrender implements port.StackRenderer. It mirrors swarm-cd's compose rendering: the compose file is an optional Go text/template evaluated against a values file exposed as {{.Values.*}}, then parsed as YAML into a generic map for the deploy adapter. Pure — no I/O; both inputs are bytes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer implements port.StackRenderer.
func (*Renderer) Render ¶
Render parses compose (optionally templated against values) into a generic compose map. When values is non-empty, compose is treated as a Go text/template executed with {"Values": <values>}, matching swarm-cd so existing stacks port unchanged. Missing value keys render as "<no value>" (swarm-cd's lenient default); a malformed template or invalid YAML is an error.