Documentation ¶
Index ¶
Constants ¶
View Source
const ( CertFilePermission = 0400 CloudProviderFilePermission = 0640 FileOwnerUserName = "root" FileOwnerGroupName = "root" FileOwnerGroupIDNobody = 65534 FilePermission = 0700 )
View Source
const (
EtcdInitialClusterStateNew = "new"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidSecret ¶
func IsSecretNotFoundError ¶
Types ¶
type CloudConfig ¶
func New ¶
func New(config Config) (*CloudConfig, error)
func (CloudConfig) NewMasterTemplate ¶
func (c CloudConfig) NewMasterTemplate(ctx context.Context, data IgnitionTemplateData, encrypter encrypter.Interface) (string, error)
NewMasterCloudConfig generates a new master cloudconfig and returns it as a base64 encoded string.
func (CloudConfig) NewWorkerTemplate ¶
func (c CloudConfig) NewWorkerTemplate(ctx context.Context, data IgnitionTemplateData, encrypter encrypter.Interface) (string, error)
NewWorkerCloudConfig generates a new worker cloudconfig and returns it as a base64 encoded string.
type IgnitionTemplateData ¶
type IgnitionTemplateData struct { AzureMachinePool *expcapzv1alpha3.AzureMachinePool AzureCluster *capzv1alpha3.AzureCluster Cluster *capiv1alpha3.Cluster CustomObject providerv1alpha1.AzureConfig Images k8scloudconfig.Images MachinePool *expcapiv1alpha3.MachinePool MasterCertFiles []certs.File Versions k8scloudconfig.Versions WorkerCertFiles []certs.File }
Click to show internal directories.
Click to hide internal directories.