controllers

package
v0.0.0-...-5aba54a Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionCompleted = "Completed"
	ConditionDegraded  = "Degraded"
	ConditionResyncing = "Resyncing"
)
View Source
const (
	Success = "Success"
	// used when replication state is primary
	FailedToPromote = "FailedToPromote"
	// used when replication state is secondary
	Demoted        = "Demoted"
	FailedToDemote = "FailedToDemote"

	Error          = "Error"
	VolumeDegraded = "VolumeDegraded"
	Healthy        = "Healthy"

	ResyncTriggered = "ResyncTriggered"
	FailedToResync  = "FailedToResync"
	NotResyncing    = "NotResyncing"
	Unknown         = "Unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VGRInstance

type VGRInstance struct {
	// contains filtered or unexported fields
}

func (*VGRInstance) UpdateVGRConditions

func (v *VGRInstance) UpdateVGRConditions()

type VolumeGroupReplicationClassReconciler

type VolumeGroupReplicationClassReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

VolumeGroupReplicationClassReconciler reconciles a VolumeGroupReplicationClass object

func (*VolumeGroupReplicationClassReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the VolumeGroupReplicationClass object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*VolumeGroupReplicationClassReconciler) SetupWithManager

func (r *VolumeGroupReplicationClassReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type VolumeGroupReplicationReconciler

type VolumeGroupReplicationReconciler struct {
	client.Client
	APIReader client.Reader
	Scheme    *runtime.Scheme
	Log       logr.Logger
}

VolumeGroupReplicationReconciler reconciles a VolumeGroupReplication object

func (*VolumeGroupReplicationReconciler) Reconcile

func (*VolumeGroupReplicationReconciler) SetupWithManager

func (r *VolumeGroupReplicationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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