lvmcluster

package
v0.0.0-...-7a7d364 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EventReasonErrorDeletionPending              EventReasonError = "DeletionPending"
	EventReasonErrorResourceReconciliationFailed EventReasonError = "ResourceReconciliationFailed"
	EventReasonResourceReconciliationSuccess     EventReasonInfo  = "ResourceReconciliationSuccess"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventReasonError

type EventReasonError string

type EventReasonInfo

type EventReasonInfo string

type Reconciler

type Reconciler struct {
	client.Client
	record.EventRecorder
	ClusterType        cluster.Type
	EnableSnapshotting bool
	Namespace          string
	ImageName          string

	// VGManagerCommand is the command that will be used to start vgmanager
	VGManagerCommand []string

	// TopoLVMLeaderElectionPassthrough uses the given leaderElection when initializing TopoLVM to synchronize
	// leader election configuration
	TopoLVMLeaderElectionPassthrough configv1.LeaderElection

	// LogPassthroughOptions define multiple settings for passing down log settings to created resources
	LogPassthroughOptions *logpassthrough.Options
}

Reconciler reconciles a LVMCluster object

func (*Reconciler) GetClient

func (r *Reconciler) GetClient() client.Client

func (*Reconciler) GetImageName

func (r *Reconciler) GetImageName() string

func (*Reconciler) GetLogPassthroughOptions

func (r *Reconciler) GetLogPassthroughOptions() *logpassthrough.Options

func (*Reconciler) GetNamespace

func (r *Reconciler) GetNamespace() string

func (*Reconciler) GetTopoLVMLeaderElectionPassthrough

func (r *Reconciler) GetTopoLVMLeaderElectionPassthrough() configv1.LeaderElection

func (*Reconciler) GetVGManagerCommand

func (r *Reconciler) GetVGManagerCommand() []string

func (*Reconciler) NormalEvent

func (r *Reconciler) NormalEvent(ctx context.Context, obj client.Object, reason EventReasonInfo, message string)

func (*Reconciler) Reconcile

func (r *Reconciler) 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.10.0/pkg/reconcile

func (*Reconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*Reconciler) SnapshotsEnabled

func (r *Reconciler) SnapshotsEnabled() bool

func (*Reconciler) WarningEvent

func (r *Reconciler) WarningEvent(_ context.Context, obj client.Object, reason EventReasonError, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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