Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallOption ¶
type InstallOption func(s *Installer)
func WithBootsOnDocker ¶
func WithBootsOnDocker() InstallOption
WithBootsOnDocker is an InstallOption to run Boots as a Docker container.
func WithBootsOnKubernetes ¶
func WithBootsOnKubernetes() InstallOption
WithBootsOnKubernetes is an InstallOption to run Boots as a Kubernetes deployment.
func WithEnvoyEnabled ¶ added in v0.12.0
func WithEnvoyEnabled(enabled bool) InstallOption
func WithHostPortEnabled ¶
func WithHostPortEnabled(enabled bool) InstallOption
WithHostPortEnabled is an InstallOption that allows you to enable/disable host port for Tinkerbell deployments.
func WithLoadBalancerEnabled ¶ added in v0.12.0
func WithLoadBalancerEnabled(enabled bool) InstallOption
WithLoadBalancer is an InstallOption that allows you to setup a LoadBalancer to expose hegel and tink-server.
func WithNamespaceCreate ¶
func WithNamespaceCreate(create bool) InstallOption
WithNamespaceCreate is an InstallOption is lets you specify whether to create the namespace needed for Tinkerbell stack.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func (*Installer) CleanupLocalBoots ¶
CleanupLocalBoots determines whether Boots is already running locally and either cleans it up or errors out depending on the `remove` flag.
func (*Installer) Install ¶
func (s *Installer) Install(ctx context.Context, bundle releasev1alpha1.TinkerbellBundle, tinkerbellIP, kubeconfig, hookOverride string, opts ...InstallOption) error
Install installs the Tinkerbell stack on a target cluster using a helm chart and providing the necessary values overrides.
type StackInstaller ¶
type StackInstaller interface { CleanupLocalBoots(ctx context.Context, forceCleanup bool) error Install(ctx context.Context, bundle releasev1alpha1.TinkerbellBundle, tinkerbellIP, kubeconfig, hookOverride string, opts ...InstallOption) error UninstallLocal(ctx context.Context) error }
func NewInstaller ¶
func NewInstaller(docker Docker, filewriter filewriter.FileWriter, helm Helm, namespace string, podCidrRange string, registryMirror *registrymirror.RegistryMirror) StackInstaller
NewInstaller returns a Tinkerbell StackInstaller which can be used to install or uninstall the Tinkerbell stack.