deploy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package deploy implements the deployah deploy command, which renders a Deployah spec into a Helm chart and installs or upgrades the release on the target cluster. To preview changes without touching the cluster, use `deployah plan` instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(app *nabat.App)

Register adds the deploy command to app.

Types

type ComponentStatus added in v0.3.0

type ComponentStatus = readiness.ComponentStatus

ComponentStatus summarizes pod readiness for one Deployah component at the end of a deploy. Alias for readiness.ComponentStatus.

type DeployWatcher added in v0.3.0

type DeployWatcher struct {
	// contains filtered or unexported fields
}

DeployWatcher observes Kubernetes events and pod readiness during a Helm deploy, feeding a live status view to a nabat.Status. Not safe for concurrent use; call Run once, and read Warnings/Summary after Run returns.

func NewDeployWatcher added in v0.3.0

func NewDeployWatcher(
	k8sClient kubernetes.Interface,
	namespace, releaseName string,
) *DeployWatcher

NewDeployWatcher creates a watcher for the given release.

func (*DeployWatcher) Run added in v0.3.0

func (w *DeployWatcher) Run(ctx context.Context, st *nabat.Status)

Run watches events and polls pod status until ctx is canceled, updating st with keyed status rows. Intended to run in a dedicated goroutine.

func (*DeployWatcher) Summary added in v0.3.0

func (w *DeployWatcher) Summary() []ComponentStatus

Summary returns per-component pod readiness from the last poll. Call only after DeployWatcher.Run returns.

func (*DeployWatcher) Warnings added in v0.3.0

func (w *DeployWatcher) Warnings() []k8s.DeployEvent

Warnings returns the Warning-type events collected during the deploy. Call only after DeployWatcher.Run returns.

type Options

type Options struct {
	Environment         string `nabat:"environment"`
	Explain             bool   `nabat:"explain"`
	ForceHostnameChange bool   `nabat:"force-hostname-change"`
	Yes                 bool   `nabat:"yes"`
	Reapply             bool   `nabat:"reapply"`
	CRDs                string `nabat:"crds"`
}

Options holds command-line flags for deploy.

Jump to

Keyboard shortcuts

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