controllers

package
v0.21.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexVolumeSnapshots added in v0.15.1

func IndexVolumeSnapshots(ctx context.Context, mgr ctrl.Manager) error

IndexVolumeSnapshots indexes all VolumeSnapshots by name. Exposed as a separate method so caller can test for presence of VolumeSnapshot CRDs in the cluster.

Types

type CosmosFullNodeReconciler

type CosmosFullNodeReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

CosmosFullNodeReconciler reconciles a CosmosFullNode object

func NewFullNode

func NewFullNode(
	client client.Client,
	recorder record.EventRecorder,
	statusClient *fullnode.StatusClient,
	cacheController *cosmos.CacheController,
) *CosmosFullNodeReconciler

NewFullNode returns a valid CosmosFullNode controller.

func (*CosmosFullNodeReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.1/pkg/reconcile

func (*CosmosFullNodeReconciler) SetupWithManager

func (r *CosmosFullNodeReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ScheduledVolumeSnapshotReconciler added in v0.5.0

type ScheduledVolumeSnapshotReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

ScheduledVolumeSnapshotReconciler reconciles a ScheduledVolumeSnapshot object

func NewScheduledVolumeSnapshotReconciler added in v0.5.0

func NewScheduledVolumeSnapshotReconciler(
	client client.Client,
	recorder record.EventRecorder,
	statusClient *fullnode.StatusClient,
	cache *cosmos.CacheController,
	missingVolSnapCRD bool,
) *ScheduledVolumeSnapshotReconciler

func (*ScheduledVolumeSnapshotReconciler) Reconcile added in v0.5.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ScheduledVolumeSnapshotReconciler) SetupWithManager added in v0.5.0

func (r *ScheduledVolumeSnapshotReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SelfHealingReconciler added in v0.10.0

type SelfHealingReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

SelfHealingReconciler reconciles the self healing portion of a CosmosFullNode object

func NewSelfHealing added in v0.10.0

func NewSelfHealing(
	client client.Client,
	recorder record.EventRecorder,
	statusClient *fullnode.StatusClient,
	httpClient *http.Client,
	cacheController *cosmos.CacheController,
) *SelfHealingReconciler

func (*SelfHealingReconciler) Reconcile added in v0.10.0

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

Reconcile reconciles only the self-healing spec in CosmosFullNode. If changes needed, this controller updates a CosmosFullNode status subresource thus triggering another reconcile loop. The CosmosFullNode uses the status object to reconcile its state.

func (*SelfHealingReconciler) SetupWithManager added in v0.10.0

func (r *SelfHealingReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type StatefulJobReconciler added in v0.4.0

type StatefulJobReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

StatefulJobReconciler reconciles a StatefulJob object.

func NewStatefulJob added in v0.4.0

func NewStatefulJob(client client.Client, recorder record.EventRecorder, missingVolSnapCRD bool) *StatefulJobReconciler

NewStatefulJob returns a valid controller. If missingVolSnapCRD is true, the controller errors on every reconcile loop and will not function.

func (*StatefulJobReconciler) Reconcile added in v0.4.0

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*StatefulJobReconciler) SetupWithManager added in v0.4.0

func (r *StatefulJobReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager. IndexVolumeSnapshots should be called first.

Jump to

Keyboard shortcuts

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