Documentation
¶
Index ¶
- Constants
- type EventReasonError
- type EventReasonInfo
- type Reconciler
- func (r *Reconciler) GetClient() client.Client
- func (r *Reconciler) GetImageName() string
- func (r *Reconciler) GetLogPassthroughOptions() *logpassthrough.Options
- func (r *Reconciler) GetNamespace() string
- func (r *Reconciler) GetTopoLVMLeaderElectionPassthrough() configv1.LeaderElection
- func (r *Reconciler) GetVGManagerCommand() []string
- func (r *Reconciler) NormalEvent(ctx context.Context, obj client.Object, reason EventReasonInfo, message string)
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *Reconciler) SnapshotsEnabled() bool
- func (r *Reconciler) WarningEvent(_ context.Context, obj client.Object, reason EventReasonError, err error)
Constants ¶
View Source
const ( EventReasonErrorDeletionPending EventReasonError = "DeletionPending" EventReasonErrorResourceReconciliationIncomplete EventReasonError = "ResourceReconciliationIncomplete" EventReasonResourceReconciliationSuccess EventReasonInfo = "ResourceReconciliationSuccess" )
View Source
const ( ReasonReconciliationInProgress = "ReconciliationInProgress" MessageReconciliationInProgress = "Reconciliation is still in progress" ReasonResourcesAvailable = "ResourcesAvailable" MessageResourcesAvailable = "Reconciliation is complete and all the resources are available" ReasonResourcesIncomplete = "ResourcesSyncIncomplete" MessageReasonResourcesSyncIncomplete = "Resources have not yet been fully synced to the cluster: %v" ReasonVGReadinessInProgress = "VGReadinessInProgress" MessageVGReadinessInProgress = "VG readiness check is still in progress" ReasonVGsFailed = "VGsFailed" MessageVGsFailed = "One or more VGs are failed" ReasonVGsDegraded = "VGsDegraded" MessageVGsDegraded = "One or more VGs are degraded" ReasonVGsReady = "VGsReady" MessageVGsReady = "All the VGs are ready" ReasonVGsUnmanaged = "VGsUnmanaged" MessageVGsUnmanaged = "VGs are unmanaged and not part of the LVMCluster, but the manager is running" )
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.