Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtraAPIVersions ¶
func ExtraAPIVersions() []string
ExtraAPIVersions are the API versions dmt adds on top of Helm's defaults so templates gating on them (VPA, cert-manager, Gateway API) render offline. Pass the result to Render via Options.ExtraAPIVersions.
Types ¶
type Object ¶
type Object struct {
FilePath string
*unstructured.Unstructured
}
Object is a single manifest produced by a strict render: the parsed Kubernetes object plus the chart-relative path of the template it came from.
func Render ¶
Render renders the chart at opts.Path with nelm's public action.ChartRender, offline (no cluster) and strictly: the first template error aborts the render. This is the same public entrypoint deckhouse-controller and d8-package-plugin use, so dmt renders modules the way they are actually installed. nelm parses the manifests, so callers get []Object and need no manifest splitting.
Before rendering it injects an image-resolution override (see injectImageStub) so image names dmt cannot know offline — werf-computed names, werf-defined aliases — still resolve instead of aborting the render, and removes it again afterwards.
type Options ¶
type Options struct {
// Path is the chart directory to render.
Path string
// Values is the .Values tree fed to the chart (not the full render context —
// action.ChartRender builds .Release/.Capabilities itself).
Values map[string]any
// ExtraAPIVersions extends .Capabilities.APIVersions (e.g. VPA, cert-manager,
// gateway kinds) so templates gating on them render offline.
ExtraAPIVersions []string
}
Options configures Render.