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
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.
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.
type Server ¶
type Server struct {
Options config.CLIOptions
// contains filtered or unexported fields
}
Server implement the component interface to run the helmbin server