template

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EtcdImageKey is the key that references the etcd image in the controller
	EtcdImageKey string = "etcd"

	// SetupEtcdEnvKey is the key that references the setup-etcd-environment image in the controller
	SetupEtcdEnvKey string = "setupEtcdEnv"

	// InfraImageKey is the key that references the infra image in the controller for crio.conf
	InfraImageKey string = "infraImage"
)

Variables

This section is empty.

Functions

func GenerateMachineConfigsForRole

func GenerateMachineConfigsForRole(config *RenderConfig, role string, path string) ([]*mcfgv1.MachineConfig, error)

GenerateMachineConfigsForRole creates MachineConfigs for the role provided

func MachineConfigFromIgnConfig

func MachineConfigFromIgnConfig(role string, name string, ignCfg *ignv2_2types.Config) *mcfgv1.MachineConfig

MachineConfigFromIgnConfig creates a MachineConfig with the provided Ignition config

func RunBootstrap

func RunBootstrap(templatesDir string, config *mcfgv1.ControllerConfig, pullSecretRaw []byte) ([]*mcfgv1.MachineConfig, error)

RunBootstrap runs the tempate controller in boostrap mode.

Types

type Controller

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

Controller defines the template controller

func New

New returns a new template controller.

func (*Controller) Run

func (ctrl *Controller) Run(workers int, stopCh <-chan struct{})

Run executes the template controller

type RenderConfig

type RenderConfig struct {
	*mcfgv1.ControllerConfigSpec
	PullSecret string
}

RenderConfig is wrapper around ControllerConfigSpec.

Jump to

Keyboard shortcuts

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