Documentation ¶
Overview ¶
Package controllers implements controllers.
Index ¶
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 // UnstructuredCachingClient provides a client that forces caching of unstructured objects, // thus allowing to optimize reads for templates or provider specific objects. UnstructuredCachingClient client.Client // 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 UnstructuredCachingClient client.Client APIReader client.Reader // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
ClusterReconciler reconciles a Cluster object.
func (*ClusterReconciler) SetupWithManager ¶
func (r *ClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type ClusterTopologyReconciler ¶ added in v0.99.99
type ClusterTopologyReconciler struct { Client client.Client Tracker *remote.ClusterCacheTracker // 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 // UnstructuredCachingClient provides a client that forces caching of unstructured objects, // thus allowing to optimize reads for templates or provider specific objects in a managed topology. UnstructuredCachingClient client.Client }
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 UnstructuredCachingClient 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 Tracker *remote.ClusterCacheTracker // 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 UnstructuredCachingClient client.Client APIReader client.Reader Tracker *remote.ClusterCacheTracker // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string // NodeDrainClientTimeout timeout of the client used for draining nodes. NodeDrainClientTimeout time.Duration }
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 UnstructuredCachingClient client.Client APIReader client.Reader Tracker *remote.ClusterCacheTracker // 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 external implements external controller types.
|
Package external implements external controller types. |
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. |