Documentation
¶
Overview ¶
Package render holds the client-side chart render result shared by the Helm engine, session's deployah.dev/deployah/internal/session.HelmClient, and plan/deploy callers. Keeping RenderResult here avoids a dependency cycle (session constructs helm clients; helm must not import session) while letting session expose render methods without importing helm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RenderResult ¶
type RenderResult struct {
// ReleaseName is the Helm release name computed for project/environment.
ReleaseName string
// Namespace is the target namespace for the release.
Namespace string
// ChartPath is the prepared chart directory backing this render. It
// stays valid until the caller runs the cleanup func returned alongside
// this result.
ChartPath string
// Manifest is the rendered, "---"-concatenated Kubernetes YAML.
Manifest string
// Hooks are the Helm hooks declared by the chart for this release.
Hooks []*v1.Hook
// IsUpgrade is true when an existing release was found and the render
// used the upgrade action, so Revision is that release's version plus
// one. It is false for a fresh install, where Revision is always 1.
IsUpgrade bool
// Revision is the release revision this render corresponds to.
Revision int
}
RenderResult is the client-side render of a chart for one project and environment, used both to diff against the last release (`deployah plan`) and, on match, as input to the real install/upgrade (`deployah deploy`).
Click to show internal directories.
Click to hide internal directories.