Documentation ¶
Index ¶
- func NeedsNewControlPlaneTemplate(oldSpec, newSpec *cluster.Spec) bool
- func NeedsNewEtcdTemplate(oldSpec, newSpec *cluster.Spec) bool
- func NeedsNewWorkloadTemplate(oldSpec, newSpec *cluster.Spec) bool
- func NewDockerTemplateBuilder(now types.NowFunc) providers.TemplateBuilder
- func NewProvider(providerConfig *v1alpha1.DockerDatacenterConfig, docker ProviderClient, ...) providers.Provider
- type DockerTemplateBuilder
- func (d *DockerTemplateBuilder) CPMachineTemplateName(clusterName string) string
- func (d *DockerTemplateBuilder) EtcdMachineTemplateName(clusterName string) string
- func (d *DockerTemplateBuilder) GenerateCAPISpecControlPlane(clusterSpec *cluster.Spec, buildOptions ...providers.BuildMapOption) (content []byte, err error)
- func (d *DockerTemplateBuilder) GenerateCAPISpecWorkers(clusterSpec *cluster.Spec, templateNames map[string]string) (content []byte, err error)
- func (d *DockerTemplateBuilder) WorkerMachineTemplateName(clusterName, workerNodeGroupName string) string
- type ProviderClient
- type ProviderKubectlClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedsNewEtcdTemplate ¶
func NewDockerTemplateBuilder ¶
func NewDockerTemplateBuilder(now types.NowFunc) providers.TemplateBuilder
func NewProvider ¶
func NewProvider(providerConfig *v1alpha1.DockerDatacenterConfig, docker ProviderClient, providerKubectlClient ProviderKubectlClient, now types.NowFunc) providers.Provider
Types ¶
type DockerTemplateBuilder ¶
type DockerTemplateBuilder struct {
// contains filtered or unexported fields
}
func (*DockerTemplateBuilder) CPMachineTemplateName ¶
func (d *DockerTemplateBuilder) CPMachineTemplateName(clusterName string) string
func (*DockerTemplateBuilder) EtcdMachineTemplateName ¶
func (d *DockerTemplateBuilder) EtcdMachineTemplateName(clusterName string) string
func (*DockerTemplateBuilder) GenerateCAPISpecControlPlane ¶ added in v0.6.0
func (d *DockerTemplateBuilder) GenerateCAPISpecControlPlane(clusterSpec *cluster.Spec, buildOptions ...providers.BuildMapOption) (content []byte, err error)
func (*DockerTemplateBuilder) GenerateCAPISpecWorkers ¶ added in v0.6.0
func (*DockerTemplateBuilder) WorkerMachineTemplateName ¶
func (d *DockerTemplateBuilder) WorkerMachineTemplateName(clusterName, workerNodeGroupName string) string
type ProviderClient ¶
type ProviderKubectlClient ¶
type ProviderKubectlClient interface { GetEksaCluster(ctx context.Context, cluster *types.Cluster, clusterName string) (*v1alpha1.Cluster, error) GetMachineDeployment(ctx context.Context, cluster *types.Cluster, machineDeploymentName string, opts ...executables.KubectlOpt) (*clusterv1.MachineDeployment, error) GetKubeadmControlPlane(ctx context.Context, cluster *types.Cluster, clusterName string, opts ...executables.KubectlOpt) (*controlplanev1.KubeadmControlPlane, error) GetEtcdadmCluster(ctx context.Context, cluster *types.Cluster, clusterName string, opts ...executables.KubectlOpt) (*etcdv1.EtcdadmCluster, error) UpdateAnnotation(ctx context.Context, resourceType, objectName string, annotations map[string]string, opts ...executables.KubectlOpt) error }
Click to show internal directories.
Click to hide internal directories.