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 ¶
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.