Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CosmosFullNodeReconciler ¶
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 ¶
func (r *CosmosFullNodeReconciler) 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.12.1/pkg/reconcile
func (*CosmosFullNodeReconciler) SetupWithManager ¶
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
func (r *ScheduledVolumeSnapshotReconciler) 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.
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
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
SetupWithManager sets up the controller with the Manager.
type StatefulJobReconciler ¶ added in v0.4.0
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
SetupWithManager sets up the controller with the Manager. IndexVolumeSnapshots should be called first.