Documentation ¶
Index ¶
- func NeedsNewControlPlaneTemplate(oldSpec, newSpec *cluster.Spec) bool
- func NeedsNewEtcdTemplate(oldSpec, newSpec *cluster.Spec) bool
- func NeedsNewKubeadmConfigTemplate(newWorkerNodeGroup *v1alpha1.WorkerNodeGroupConfiguration, ...) 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
- type ProviderClient
- type ProviderKubectlClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedsNewEtcdTemplate ¶
func NeedsNewKubeadmConfigTemplate ¶ added in v0.9.0
func NeedsNewKubeadmConfigTemplate(newWorkerNodeGroup *v1alpha1.WorkerNodeGroupConfiguration, oldWorkerNodeGroup *v1alpha1.WorkerNodeGroupConfiguration) bool
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) 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
type ProviderClient ¶
type ProviderKubectlClient ¶
type ProviderKubectlClient interface { GetEksaCluster(ctx context.Context, cluster *types.Cluster, clusterName string) (*v1alpha1.Cluster, error) GetMachineDeployment(ctx context.Context, 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.