controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package controller implements component controllers as part of the serve command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helm

type Helm struct {
	Options config.CLIOptions
	// contains filtered or unexported fields
}

Helm implement the component interface to run the Helm controller

func (*Helm) Init

func (k *Helm) Init(_ context.Context) error

Init initializes the Helm controller

func (*Helm) Ready

func (k *Helm) Ready() error

Ready is the health-check interface

func (*Helm) Start

func (k *Helm) Start(ctx context.Context) error

Start starts the Helm controller

func (*Helm) Stop

func (k *Helm) Stop() error

Stop stops the Helm controller

type K0sController

type K0sController struct {
	Options config.K0sControllerOptions

	Output io.Writer
	// contains filtered or unexported fields
}

K0sController implements the component interface to run the k0s controller.

func (*K0sController) Init

func (k *K0sController) Init(_ context.Context) error

Init initializes k0s.

func (*K0sController) Ready

func (k *K0sController) Ready() error

Ready is the health-check interface.

func (*K0sController) Start

func (k *K0sController) Start(_ context.Context) error

Start starts k0s.

func (*K0sController) Stop

func (k *K0sController) Stop() error

Stop stops k0s

type KotsRelease

type KotsRelease struct {
	Options config.CLIOptions
	// contains filtered or unexported fields
}

KotsRelease implement the component interface to run the KotsRelease controller. This controller inspects for assets embed into the binary and apply them.

func (*KotsRelease) Init

func (k *KotsRelease) Init(_ context.Context) error

Init initializes the KotsRelease controller. Reads the "sec_bundle" section of the elf binary if it exists. The "sec_bundle" section is expected to contain a tar.gz archive of the kots release yaml files. The embed process of this section does not happen here but it is something that is executed by the release build process.

func (*KotsRelease) Start

func (k *KotsRelease) Start(ctx context.Context) error

Start starts the KotsRelease controller. It creates or updates the kotsadm-application-metadata configmap in the default namespace and then finishes. If no kots release bundle is found inside the binary, this is a no-op.

func (*KotsRelease) Stop

func (k *KotsRelease) Stop() error

Stop stops the KotsRelease controller

type Server

type Server struct {
	Options config.CLIOptions
	// contains filtered or unexported fields
}

Server implement the component interface to run the helmbin server

func (*Server) Init

func (k *Server) Init(_ context.Context) error

Init initializes the server

func (*Server) Ready

func (k *Server) Ready() error

Ready is the health-check interface

func (*Server) Start

func (k *Server) Start(ctx context.Context) error

Start starts the server

func (*Server) Stop

func (k *Server) Stop() error

Stop stops the server

Directories

Path Synopsis
Package manager implements the component manager
Package manager implements the component manager

Jump to

Keyboard shortcuts

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