Documentation
¶
Overview ¶
Package controllers implements controllers.
Index ¶
- type ClusterClassReconciler
- type ClusterReconciler
- type ClusterResourceSetBindingReconciler
- type ClusterResourceSetReconciler
- type ClusterTopologyReconciler
- type MachineDeploymentReconciler
- type MachineDeploymentTopologyReconciler
- type MachineHealthCheckReconciler
- type MachineReconciler
- type MachineSetReconciler
- type MachineSetTopologyReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterClassReconciler ¶ added in v0.99.99
type ClusterClassReconciler struct { Client client.Client // RuntimeClient is a client for calling runtime extensions. RuntimeClient runtimeclient.Client // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string // contains filtered or unexported fields }
ClusterClassReconciler reconciles the ClusterClass object.
func (*ClusterClassReconciler) Reconcile ¶ added in v1.7.0
func (r *ClusterClassReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile can be used to reconcile a ClusterClass. Before it can be used, all fields of the ClusterClassReconciler have to be set and SetupWithManager has to be called. This method can be used when testing the behavior of the desired state computation of the Cluster topology controller (because that requires a reconciled ClusterClass).
func (*ClusterClassReconciler) SetupWithManager ¶ added in v0.99.99
func (r *ClusterClassReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type ClusterReconciler ¶
type ClusterReconciler struct { Client client.Client APIReader client.Reader ClusterCache clustercache.ClusterCache // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string RemoteConnectionGracePeriod time.Duration }
ClusterReconciler reconciles a Cluster object.
func (*ClusterReconciler) SetupWithManager ¶
func (r *ClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type ClusterResourceSetBindingReconciler ¶ added in v1.10.0
type ClusterResourceSetBindingReconciler struct { Client client.Client // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
ClusterResourceSetBindingReconciler reconciles a ClusterResourceSetBinding object.
func (*ClusterResourceSetBindingReconciler) SetupWithManager ¶ added in v1.10.0
func (r *ClusterResourceSetBindingReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type ClusterResourceSetReconciler ¶ added in v1.10.0
type ClusterResourceSetReconciler struct { Client client.Client ClusterCache clustercache.ClusterCache // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
ClusterResourceSetReconciler reconciles a ClusterResourceSet object.
func (*ClusterResourceSetReconciler) SetupWithManager ¶ added in v1.10.0
func (r *ClusterResourceSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options, partialSecretCache cache.Cache) error
type ClusterTopologyReconciler ¶ added in v0.99.99
type ClusterTopologyReconciler struct { Client client.Client ClusterCache clustercache.ClusterCache // APIReader is used to list MachineSets directly via the API server to avoid // race conditions caused by an outdated cache. APIReader client.Reader RuntimeClient runtimeclient.Client // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
ClusterTopologyReconciler reconciles a managed topology for a Cluster object.
func (*ClusterTopologyReconciler) SetupWithManager ¶ added in v0.99.99
func (r *ClusterTopologyReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type MachineDeploymentReconciler ¶
type MachineDeploymentReconciler struct { Client client.Client APIReader client.Reader // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
MachineDeploymentReconciler reconciles a MachineDeployment object.
func (*MachineDeploymentReconciler) SetupWithManager ¶
func (r *MachineDeploymentReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type MachineDeploymentTopologyReconciler ¶ added in v0.99.99
type MachineDeploymentTopologyReconciler struct { Client client.Client // APIReader is used to list MachineSets directly via the API server to avoid // race conditions caused by an outdated cache. APIReader client.Reader WatchFilterValue string }
MachineDeploymentTopologyReconciler deletes referenced templates during deletion of topology-owned MachineDeployments. The templates are only deleted, if they are not used in other MachineDeployments or MachineSets which are not in deleting state, i.e. the templates would otherwise be orphaned after the MachineDeployment deletion completes. Note: To achieve this the cluster topology controller sets a finalizer to hook into the MachineDeployment deletions.
func (*MachineDeploymentTopologyReconciler) SetupWithManager ¶ added in v0.99.99
func (r *MachineDeploymentTopologyReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type MachineHealthCheckReconciler ¶ added in v0.3.0
type MachineHealthCheckReconciler struct { Client client.Client ClusterCache clustercache.ClusterCache // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
MachineHealthCheckReconciler reconciles a MachineHealthCheck object.
func (*MachineHealthCheckReconciler) SetupWithManager ¶ added in v0.3.0
func (r *MachineHealthCheckReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type MachineReconciler ¶
type MachineReconciler struct { Client client.Client APIReader client.Reader ClusterCache clustercache.ClusterCache // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string RemoteConditionsGracePeriod time.Duration AdditionalSyncMachineLabels []*regexp.Regexp AdditionalSyncMachineAnnotations []*regexp.Regexp }
MachineReconciler reconciles a Machine object.
func (*MachineReconciler) SetupWithManager ¶
func (r *MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type MachineSetReconciler ¶
type MachineSetReconciler struct { Client client.Client APIReader client.Reader ClusterCache clustercache.ClusterCache PreflightChecks sets.Set[clusterv1.MachineSetPreflightCheck] // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
MachineSetReconciler reconciles a MachineSet object.
func (*MachineSetReconciler) SetupWithManager ¶
func (r *MachineSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type MachineSetTopologyReconciler ¶ added in v0.99.99
type MachineSetTopologyReconciler struct { Client client.Client // APIReader is used to list MachineSets directly via the API server to avoid // race conditions caused by an outdated cache. APIReader client.Reader WatchFilterValue string }
MachineSetTopologyReconciler deletes referenced templates during deletion of topology-owned MachineSets. The templates are only deleted, if they are not used in other MachineDeployments or MachineSets which are not in deleting state, i.e. the templates would otherwise be orphaned after the MachineSet deletion completes. Note: To achieve this the reconciler sets a finalizer to hook into the MachineSet deletions.
func (*MachineSetTopologyReconciler) SetupWithManager ¶ added in v0.99.99
func (r *MachineSetTopologyReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
Directories
¶
Path | Synopsis |
---|---|
Package clustercache implements the ClusterCache.
|
Package clustercache implements the ClusterCache. |
Package crdmigrator contains the CRD migrator implementation.
|
Package crdmigrator contains the CRD migrator implementation. |
test/t1/v1beta1
Package v1beta1 contains test types.
|
Package v1beta1 contains test types. |
test/t2/v1beta1
Package v1beta1 contains test types.
|
Package v1beta1 contains test types. |
test/t2/v1beta2
Package v1beta2 contains test types.
|
Package v1beta2 contains test types. |
test/t3/v1beta1
Package v1beta1 contains test types.
|
Package v1beta1 contains test types. |
test/t3/v1beta2
Package v1beta2 contains test types.
|
Package v1beta2 contains test types. |
test/t4/v1beta2
Package v1beta2 contains test types.
|
Package v1beta2 contains test types. |
Package external implements external controller types.
|
Package external implements external controller types. |
fake
Package fake provides a fake controllers for testing.
|
Package fake provides a fake controllers for testing. |
Package noderefutil implements noderef utilities.
|
Package noderefutil implements noderef utilities. |
Package remote implements remote controllers.
|
Package remote implements remote controllers. |
fake
Package fake implements testing fakes.
|
Package fake implements testing fakes. |