Documentation
¶
Overview ¶
Package deploy installs a Podplane app template onto a Kubernetes cluster by rendering values and invoking Helm against a cached chart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logs ¶
func Logs(opts LogsOptions) error
Logs invokes `kubectl logs --follow` for pods belonging to the named app.
func Remove ¶
func Remove(opts RemoveOptions) error
Remove invokes `helm uninstall` for the named release.
func Run ¶
Run renders Helm values from opts and invokes `helm upgrade --install` for the resolved chart. The caller is responsible for ensuring opts.ChartPath exists (typically via EnsureChart).
func TemplateMirrorSetArgs ¶ added in v0.4.0
func TemplateMirrorSetArgs(images []deps.TemplateImage, template string, cluster config.ClusterSummary, explicitAppImage string, userSet []string) []string
TemplateMirrorSetArgs builds Helm --set overrides for template image defaults that should be served from the cluster's registry mirror.
Types ¶
type Chart ¶
type Chart struct {
Path string
Template deps.TemplateChart
Images []deps.TemplateImage
}
Chart is a resolved template chart in the local dependency cache.
func EnsureChart ¶
func EnsureChart(c *config.Config, template string, wrap func(download func(progress func(deps.DownloadEvent)) error) error) (Chart, error)
EnsureChart returns the local Helm chart path for template, downloading dependencies first when the chart is missing from the cache. wrap, if non-nil, brackets the download call so callers can render a UI around it; it receives the download function to invoke with a progress callback.
type LogsOptions ¶
LogsOptions controls log streaming for a deployed app.
type Options ¶
type Options struct {
Template string
Name string
ChartPath string
Image string
Env []string
Hostname string
Path string
Port int
RuntimeDirectory string
Set []string
Namespace string
Context string
Kubeconfig string
Wait bool
Timeout time.Duration
}
Options controls a single app deployment.