Documentation ¶
Index ¶
- Constants
- func GenerateMachineConfigsForRole(config *RenderConfig, role, templateDir string) ([]*mcfgv1.MachineConfig, error)
- func MachineConfigFromIgnConfig(role, name string, ignCfg *igntypes.Config) *mcfgv1.MachineConfig
- func RunBootstrap(templatesDir string, config *mcfgv1.ControllerConfig, pullSecretRaw []byte) ([]*mcfgv1.MachineConfig, error)
- type Controller
- type RenderConfig
Constants ¶
View Source
const ( // EtcdImageKey is the key that references the etcd image in the controller EtcdImageKey string = "etcdKey" // SetupEtcdEnvKey is the key that references the setup-etcd-environment image in the controller SetupEtcdEnvKey string = "setupEtcdEnvKey" // InfraImageKey is the key that references the infra image in the controller for crio.conf InfraImageKey string = "infraImageKey" // KubeClientAgentImageKey is the key that references the kube-client-agent image in the controller KubeClientAgentImageKey string = "kubeClientAgentImageKey" )
Variables ¶
This section is empty.
Functions ¶
func GenerateMachineConfigsForRole ¶
func GenerateMachineConfigsForRole(config *RenderConfig, role, templateDir string) ([]*mcfgv1.MachineConfig, error)
GenerateMachineConfigsForRole creates MachineConfigs for the role provided
func MachineConfigFromIgnConfig ¶
func MachineConfigFromIgnConfig(role, name string, ignCfg *igntypes.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 ¶
func New( templatesDir string, ccInformer mcfginformersv1.ControllerConfigInformer, mcInformer mcfginformersv1.MachineConfigInformer, secretsInformer coreinformersv1.SecretInformer, 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.