bootstrap

package
v1.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Overview

Copyright 2026.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPlaneController added in v0.6.0

type ControlPlaneController struct {
	client.Client
	SecretCachingClient client.Client
	Scheme              *runtime.Scheme
	ClientSet           *kubernetes.Clientset
	RESTConfig          *rest.Config
}

ControlPlaneController is responsible for reconciling the K0sControllerConfig resource.

func (*ControlPlaneController) Reconcile added in v0.6.0

func (c *ControlPlaneController) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile reconciles the K0sControllerConfig resource, which is responsible for generating the bootstrap data for control plane machines.

func (*ControlPlaneController) SetupWithManager added in v0.6.0

func (c *ControlPlaneController) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error

SetupWithManager sets up the controller with the Manager.

type Controller

type Controller struct {
	client.Client
	SecretCachingClient client.Client
	Scheme              *runtime.Scheme
	ClientSet           *kubernetes.Clientset
	RESTConfig          *rest.Config
	// contains filtered or unexported fields
}

Controller is responsible for reconciling the K0sWorkerConfig resource, which is responsible for generating the bootstrap data for worker machines.

func (*Controller) Reconcile

func (r *Controller) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile reconciles the k0sconfig resource.

func (*Controller) SetupWithManager

func (r *Controller) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error

SetupWithManager sets up the controller with the Manager.

type ControllerScope added in v1.0.2

type ControllerScope struct {
	Config        *bootstrapv1.K0sControllerConfig
	ConfigOwner   *bsutil.ConfigOwner
	Cluster       *clusterv1.Cluster
	WorkerEnabled bool
	// contains filtered or unexported fields
}

ControllerScope contains the information required to generate the bootstrap data for a control plane machine.

type K0sWorkerConfigValidator added in v1.10.3

type K0sWorkerConfigValidator struct{}

K0sWorkerConfigValidator implements a validation webhook for K0sWorkerConfig.

func (*K0sWorkerConfigValidator) SetupK0sWorkerConfigWebhookWithManager added in v1.10.3

func (v *K0sWorkerConfigValidator) SetupK0sWorkerConfigWebhookWithManager(mgr ctrl.Manager) error

SetupK0sWorkerConfigWebhookWithManager registers the webhook for K0sWorkerConfig in the manager.

func (*K0sWorkerConfigValidator) ValidateCreate added in v1.10.3

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*K0sWorkerConfigValidator) ValidateDelete added in v1.10.3

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.

func (*K0sWorkerConfigValidator) ValidateUpdate added in v1.10.3

func (v *K0sWorkerConfigValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type.

type ProviderIDController added in v1.0.2

type ProviderIDController struct {
	client.Client
	Scheme    *runtime.Scheme
	ClientSet *kubernetes.Clientset
}

ProviderIDController is responsible for reconciling the ProviderID field of the Machine resource.

func (*ProviderIDController) Reconcile added in v1.0.2

func (p *ProviderIDController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles the ProviderID field of the Machine resource and ensures it is set on the corresponding Node in the workload cluster.

func (*ProviderIDController) SetupWithManager added in v1.0.2

func (p *ProviderIDController) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error

SetupWithManager sets up the controller with the Manager.

type Scope

type Scope struct {
	Config      *bootstrapv1.K0sWorkerConfig
	ConfigOwner *bsutil.ConfigOwner
	Cluster     *clusterv1.Cluster
	// contains filtered or unexported fields
}

Scope contains the information required to generate the bootstrap data for a worker machine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL