controllers

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAPICleanupReconciler added in v0.10.0

type CAPICleanupReconciler struct {
	RancherClient client.Client
	Scheme        *runtime.Scheme
}

CAPICleanupReconciler is a reconciler for cleanup of managementv3 clusters.

func (*CAPICleanupReconciler) Reconcile added in v0.10.0

func (r *CAPICleanupReconciler) Reconcile(ctx context.Context, cluster *managementv3.Cluster) (res ctrl.Result, err error)

Reconcile performs check for clusters and removes finalizer on the clusters in deleteion still containing the turtles finalizer.

func (*CAPICleanupReconciler) SetupWithManager added in v0.10.0

func (r *CAPICleanupReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up reconciler with manager.

type CAPIImportManagementV3Reconciler

type CAPIImportManagementV3Reconciler struct {
	Client         client.Client
	UncachedClient client.Client
	RancherClient  client.Client

	WatchFilterValue   string
	Scheme             *runtime.Scheme
	InsecureSkipVerify bool
	// contains filtered or unexported fields
}

CAPIImportManagementV3Reconciler represents a reconciler for importing CAPI clusters in Rancher.

func (*CAPIImportManagementV3Reconciler) Reconcile

Reconcile reconciles a CAPI cluster, creating a Rancher cluster if needed and applying the import manifests.

func (*CAPIImportManagementV3Reconciler) SetupWithManager

func (r *CAPIImportManagementV3Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up reconciler with manager.

type CAPIProviderReconciler

type CAPIProviderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

CAPIProviderReconciler reconciles a CAPIProvider object.

func (*CAPIProviderReconciler) Reconcile

func (r *CAPIProviderReconciler) Reconcile(ctx context.Context, capiProvider *turtlesv1.CAPIProvider) (ctrl.Result, error)

Reconcile reconciles the CAPIProvider object.

func (*CAPIProviderReconciler) SetupWithManager

func (r *CAPIProviderReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager, options controller.Options) (err error)

SetupWithManager sets up the controller with the Manager.

type ClusterctlConfigReconciler added in v0.12.0

type ClusterctlConfigReconciler struct {
	client.Client
}

ClusterctlConfigReconciler reconciles a ClusterctlConfig object.

func (*ClusterctlConfigReconciler) Reconcile added in v0.12.0

Reconcile reconciles the EtcdMachineSnapshot object.

func (*ClusterctlConfigReconciler) SetupWithManager added in v0.12.0

func (r *ClusterctlConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, _ controller.Options) error

SetupWithManager sets up the controller with the Manager.

type Config added in v0.12.0

type Config struct {
	Providers turtlesv1.ProviderList `json:"providers"`
	Images    map[string]ConfigImage `json:"images"`
}

Config is a direct clusterctl config representation.

type ConfigImage added in v0.12.0

type ConfigImage struct {
	// Repository sets the container registry override to pull images from.
	Repository string `json:"repository,omitempty"`

	// Tag allows to specify a tag for the images.
	Tag string `json:"tag,omitempty"`
}

ConfigImage is a direct clusterctl representation of image config value.

type UIPluginReconciler added in v0.17.0

type UIPluginReconciler struct {
	client.Client
	*runtime.Scheme
	UncachedClient client.Client
}

UIPluginReconciler reconciles a UIPlugin object.

func (*UIPluginReconciler) Reconcile added in v0.17.0

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

Reconcile moves the UIPlugin into cattle-ui-plugin-system namespace.

func (*UIPluginReconciler) SetupWithManager added in v0.17.0

func (r *UIPluginReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager, _ controller.Options) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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