cub package install
cub package install
Install a package into a Space: pull it, answer its inputs, render it and upload it
Synopsis
Install a package into a Space: pull it, run its wizard, render it, and upload the result, one Unit per resource, with an installer record that a later install reads back.
--space is required. A Space that does not exist yet is created. When it already holds an install of the package, its installer record is re-entered: the answers it recorded still apply, so installing again, or installing a newer version, upgrades it. A package with dependencies uploads each of them into a Space of its own, named by --space-pattern.
The wizard asks for what the flags do not answer when stdin is a terminal; --non-interactive never asks. An upload that would empty Units whose resources are no longer rendered asks first, unless --yes is given.
Install does not release anything: the Space's Units are released to its Target as any others are.
Rendered Secrets are never uploaded. Without --work-dir, the install works in a temporary directory, which is removed unless the package rendered Secrets; then the directory is kept and named.
cub package install <package> --space <space> [flags]
Examples
# Install k8sbot's newest package into a new Space.
cub package install k8sbot --space k8sbot-base --select argocd --namespace confighubbot
# Upgrade it to a given version, keeping its answers.
cub package install k8sbot:v0.2.13 --space k8sbot-base
# Install a package from another registry, answering an input.
cub package install oci://ghcr.io/example/packages/app:v1.2.0 --space app \
--namespace app --input replicas=3
Options
--base string the package's base to install (default: its default base, or the earlier install's)
--components string component preset instead of --select: minimal, default, all, or selected
-h, --help help for install
--input stringArray answer to one of the package's inputs, as name=value (repeatable)
--namespace string Kubernetes namespace to install into; a first install that does not prompt needs it
--non-interactive never prompt; what the flags and the earlier install do not answer is an error
--reuse take the earlier install's choices as they are, without prompting
--select strings component to install (repeatable); the components it requires come with it
--set-image stringArray image override as name=ref (repeatable): name is the image without its tag or digest
--space string Space to install into, by slug; created if it does not exist (required)
--space-pattern string Go template for the Spaces of the package's dependencies, over .PackageName, .PackageVersion and .Variant (default {{.PackageName}})
--target string the Space's release Target, in <target-slug> or <space-slug>/<target-slug> form
--variant string value for the well-known "Variant" Space label (default: the Space's own, or base)
--work-dir string directory to keep the install's state in (default: a temporary directory)
--yes do not ask for confirmation when the upload would empty Units
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub package - Install packages into ConfigHub, and show what is installed