Documentation ¶
Overview ¶
Package initialmachinedeployment contains a controller that watches Cluster resources and will transform the InitialMachineDeployment annotation into an actual MachineDeployment once the cluster has become ready.
The annotation for the initial Machine Deployment is put there by the REST API's create-cluster endpoint.
Index ¶
- Constants
- func Add(ctx context.Context, mgr manager.Manager, numWorkers int, workerName string, ...) error
- func CompleteMachineDeployment(md *clusterv1alpha1.MachineDeployment, cluster *kubermaticv1.Cluster, ...) (*clusterv1alpha1.MachineDeployment, error)
- func ValidateMachineDeployment(md *clusterv1alpha1.MachineDeployment, controlPlaneVersion *semverlib.Version) error
- type Reconciler
- type UserClusterClientProvider
Constants ¶
const (
ControllerName = "kkp-initial-machinedeployment-controller"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(ctx context.Context, mgr manager.Manager, numWorkers int, workerName string, seedGetter provider.SeedGetter, userClusterConnectionProvider UserClusterClientProvider, log *zap.SugaredLogger, versions kubermatic.Versions) error
Add creates a new initialmachinedeployment controller.
func CompleteMachineDeployment ¶
func CompleteMachineDeployment(md *clusterv1alpha1.MachineDeployment, cluster *kubermaticv1.Cluster, datacenter *kubermaticv1.Datacenter, keys []*kubermaticv1.UserSSHKey) (*clusterv1alpha1.MachineDeployment, error)
CompleteMachineDeployment returns a Machine Deployment object for the given Node Deployment spec.
func ValidateMachineDeployment ¶
func ValidateMachineDeployment(md *clusterv1alpha1.MachineDeployment, controlPlaneVersion *semverlib.Version) error
Validate if the node deployment structure fulfills certain requirements. It returns node deployment with updated kubelet version if it wasn't specified.
Types ¶
type Reconciler ¶
type Reconciler struct { ctrlruntimeclient.Client // contains filtered or unexported fields }
type UserClusterClientProvider ¶
type UserClusterClientProvider interface {
GetClient(ctx context.Context, c *kubermaticv1.Cluster, options ...clusterclient.ConfigOption) (ctrlruntimeclient.Client, error)
}
UserClusterClientProvider provides functionality to get a user cluster client.