Documentation ¶
Index ¶
- func NewProvider(datacenterConfig *v1alpha1.TinkerbellDatacenterConfig, ...) *tinkerbellProvider
- func NewTinkerbellTemplateBuilder(datacenterSpec *v1alpha1.TinkerbellDatacenterConfigSpec, ...) providers.TemplateBuilder
- type ProviderKubectlClient
- type TinkerbellTemplateBuilder
- func (vs *TinkerbellTemplateBuilder) CPMachineTemplateName(clusterName string) string
- func (vs *TinkerbellTemplateBuilder) EtcdMachineTemplateName(clusterName string) string
- func (vs *TinkerbellTemplateBuilder) GenerateCAPISpecControlPlane(clusterSpec *cluster.Spec, buildOptions ...providers.BuildMapOption) (content []byte, err error)
- func (vs *TinkerbellTemplateBuilder) GenerateCAPISpecWorkers(clusterSpec *cluster.Spec, ...) (content []byte, err error)
- func (vs *TinkerbellTemplateBuilder) KubeadmConfigTemplateName(clusterName, workerNodeGroupName string) string
- func (vs *TinkerbellTemplateBuilder) WorkerMachineTemplateName(clusterName, workerNodeGroupName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(datacenterConfig *v1alpha1.TinkerbellDatacenterConfig, machineConfigs map[string]*v1alpha1.TinkerbellMachineConfig, clusterConfig *v1alpha1.Cluster, providerKubectlClient ProviderKubectlClient, now types.NowFunc, hardwareConfigFile string) *tinkerbellProvider
func NewTinkerbellTemplateBuilder ¶
func NewTinkerbellTemplateBuilder(datacenterSpec *v1alpha1.TinkerbellDatacenterConfigSpec, controlPlaneMachineSpec, etcdMachineSpec *v1alpha1.TinkerbellMachineConfigSpec, workerNodeGroupMachineSpecs map[string]v1alpha1.TinkerbellMachineConfigSpec, now types.NowFunc) providers.TemplateBuilder
Types ¶
type ProviderKubectlClient ¶
type ProviderKubectlClient interface { ApplyHardware(ctx context.Context, hardwareYaml string, kubeConfFile string) error DeleteEksaDatacenterConfig(ctx context.Context, eksaTinkerbellDatacenterResourceType string, tinkerbellDatacenterConfigName string, kubeconfigFile string, namespace string) error DeleteEksaMachineConfig(ctx context.Context, eksaTinkerbellMachineResourceType string, tinkerbellMachineConfigName string, kubeconfigFile string, namespace string) error GetMachineDeployment(ctx context.Context, machineDeploymentName string, opts ...executables.KubectlOpt) (*clusterv1.MachineDeployment, error) }
TODO: Add necessary kubectl functions here
type TinkerbellTemplateBuilder ¶
type TinkerbellTemplateBuilder struct {
// contains filtered or unexported fields
}
func (*TinkerbellTemplateBuilder) CPMachineTemplateName ¶
func (vs *TinkerbellTemplateBuilder) CPMachineTemplateName(clusterName string) string
func (*TinkerbellTemplateBuilder) EtcdMachineTemplateName ¶
func (vs *TinkerbellTemplateBuilder) EtcdMachineTemplateName(clusterName string) string
func (*TinkerbellTemplateBuilder) GenerateCAPISpecControlPlane ¶
func (vs *TinkerbellTemplateBuilder) GenerateCAPISpecControlPlane(clusterSpec *cluster.Spec, buildOptions ...providers.BuildMapOption) (content []byte, err error)
func (*TinkerbellTemplateBuilder) GenerateCAPISpecWorkers ¶
func (*TinkerbellTemplateBuilder) KubeadmConfigTemplateName ¶ added in v0.7.1
func (vs *TinkerbellTemplateBuilder) KubeadmConfigTemplateName(clusterName, workerNodeGroupName string) string
func (*TinkerbellTemplateBuilder) WorkerMachineTemplateName ¶
func (vs *TinkerbellTemplateBuilder) WorkerMachineTemplateName(clusterName, workerNodeGroupName string) string
Click to show internal directories.
Click to hide internal directories.