Documentation ¶
Index ¶
- Constants
- func GenerateMachineConfigsForRole(config *RenderConfig, role string, path string) ([]*mcfgv1.MachineConfig, error)
- func MachineConfigFromIgnConfig(role string, name string, ignCfg *ignv2_2types.Config) *mcfgv1.MachineConfig
- func RunBootstrap(templatesDir string, config *mcfgv1.ControllerConfig, pullSecretRaw []byte) ([]*mcfgv1.MachineConfig, error)
- type Controller
- type RenderConfig
Constants ¶
View Source
const ( EtcdImageKey string = "etcd" SetupEtcdEnvKey string = "setupEtcdEnv" )
Variables ¶
This section is empty.
Functions ¶
func GenerateMachineConfigsForRole ¶
func GenerateMachineConfigsForRole(config *RenderConfig, role string, path string) ([]*mcfgv1.MachineConfig, error)
func MachineConfigFromIgnConfig ¶
func MachineConfigFromIgnConfig(role string, name string, ignCfg *ignv2_2types.Config) *mcfgv1.MachineConfig
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 ¶
func New( templatesDir string, ccInformer mcfginformersv1.ControllerConfigInformer, mcInformer mcfginformersv1.MachineConfigInformer, kubeClient clientset.Interface, mcfgClient mcfgclientset.Interface, ) *Controller
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.
Click to show internal directories.
Click to hide internal directories.