Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProvisioningUtility ¶ added in v0.2.0
func GetProvisioningUtility(osName osmv1alpha1.OperatingSystem, md clusterv1alpha1.MachineDeployment) (osmv1alpha1.ProvisioningUtility, error)
GetProvisioningUtility returns the provisioning utility for the given machine
func GetServiceName ¶
GetServiceName get the name of the service file if it was a service one.
func TxtFuncMap ¶
TxtFuncMap returns an aggregated template function map. Currently (custom functions + sprig)
Types ¶
type CloudConfigGenerator ¶ added in v0.2.0
type CloudConfigGenerator interface {
Generate(config *osmv1alpha1.OSCConfig, provisioningUtility osmv1alpha1.ProvisioningUtility, operatingSystem osmv1alpha1.OperatingSystem, cloudProvider osmv1alpha1.CloudProvider, md clusterv1alpha1.MachineDeployment, secretType mcbootstrap.CloudConfigSecret) ([]byte, error)
}
CloudConfigGenerator generates the machine bootstrapping and provisioning configurations for the corresponding operating system config
func NewDefaultCloudConfigGenerator ¶ added in v0.2.0
func NewDefaultCloudConfigGenerator(unitsPath string) CloudConfigGenerator
NewDefaultCloudConfigGenerator creates a new CloudConfigGenerator.
type DefaultCloudConfigGenerator ¶ added in v0.2.0
type DefaultCloudConfigGenerator struct {
// contains filtered or unexported fields
}
DefaultCloudConfigGenerator represents the default generator of the machine provisioning configurations
func (*DefaultCloudConfigGenerator) Generate ¶ added in v0.2.0
func (d *DefaultCloudConfigGenerator) Generate(config *osmv1alpha1.OSCConfig, provisioningUtility osmv1alpha1.ProvisioningUtility, operatingSystem osmv1alpha1.OperatingSystem, cloudProvider osmv1alpha1.CloudProvider, md clusterv1alpha1.MachineDeployment, secretType mcbootstrap.CloudConfigSecret) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.