Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigParams ¶
type ConfigParams struct { OS string Roles []clustercommon.MachineRole Versions clusterv1.MachineVersionInfo }
type ConfigWatch ¶
type ConfigWatch struct {
// contains filtered or unexported fields
}
Config Watch holds the path to the machine setup configs yaml file. This works directly with a yaml file is used instead of a ConfigMap object so that we don't take a dependency on the API Server.
func NewConfigWatch ¶
func NewConfigWatch(path string) (*ConfigWatch, error)
func (*ConfigWatch) GetMachineSetupConfig ¶
func (cw *ConfigWatch) GetMachineSetupConfig() (MachineSetupConfig, error)
type MachineSetupConfig ¶
type MachineSetupConfig interface { GetYaml() (string, error) GetImage(params *ConfigParams) (string, error) GetMetadata(params *ConfigParams) (Metadata, error) }
type ValidConfigs ¶
type ValidConfigs struct {
// contains filtered or unexported fields
}
The valid machine setup configs parsed out of the machine setup configs yaml file held in ConfigWatch.
func (*ValidConfigs) GetImage ¶
func (vc *ValidConfigs) GetImage(params *ConfigParams) (string, error)
func (*ValidConfigs) GetMetadata ¶
func (vc *ValidConfigs) GetMetadata(params *ConfigParams) (Metadata, error)
func (*ValidConfigs) GetYaml ¶
func (vc *ValidConfigs) GetYaml() (string, error)
Click to show internal directories.
Click to hide internal directories.