bootconfig

package
v0.0.0-...-146a38b Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: BSD-3-Clause, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.5.2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller for the boot config.

func NewController

func NewController(opts *Options) *Controller

NewController creates a new controller with the configuration.

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

Run starts the controller.

func (*Controller) SetupClients

func (c *Controller) SetupClients(cfg *k8srestapi.Config) error

SetupClients takes the configuration and prepares the rest clients that will be used to interact with the cluster objects.

type Options

type Options struct {
	// TargetTag is the tag that will be looked up to find
	// the public ip from the node.
	TargetTag string

	// ClientAdvertiseFileName is the name of the file where
	// the advertise configuration will be written into.
	ClientAdvertiseFileName string

	// GatewayAdvertiseFileName is the name of the file where
	// the advertise configuration will be written into for gateways.
	GatewayAdvertiseFileName string

	// NoSignals marks whether to enable the signal handler.
	NoSignals bool
}

Jump to

Keyboard shortcuts

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