Documentation ¶
Index ¶
Constants ¶
View Source
const ( ODF_NAMESPACE = "openshift-storage" FAILED_OSD_IDS = "FAILED_OSD_IDS" FORCE_OSD_REMOVAL = "FORCE_OSD_REMOVAL" HEALTH_OK = "HEALTH_OK" OCS_OSD_REMOVAL_JOB = "ocs-osd-removal" )
Variables ¶
This section is empty.
Functions ¶
func NewLogRetriever ¶
Types ¶
type NodeRecovery ¶
type NodeRecovery struct { client.Client *rest.Config Scheme *runtime.Scheme // contains filtered or unexported fields }
NodeRecovery represents the structure of the object that recovers an ODF cluster from a physical failure
func (*NodeRecovery) Reconcile ¶
func (r *NodeRecovery) Reconcile(instance *odfv1alpha1.NodeRecovery) (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.16.3/pkg/reconcile
type NodeRecoveryReconciler ¶
type NodeRecoveryReconciler struct { client.Client *rest.Config Scheme *runtime.Scheme Recorder record.EventRecorder CmdRunner pod.RemoteCommandExecutor LogClient podLogRetriever }
NodeRecoveryReconciler reconciles a NodeRecovery object
func (*NodeRecoveryReconciler) SetupWithManager ¶
func (r *NodeRecoveryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type RecoveryReason ¶
type RecoveryReason string
var ( EnableCephTools RecoveryReason = "EnableCephTools" WaitForCephToolsPodRunning RecoveryReason = "WaitForCephToolsPodRunning" WaitForOSDPodsStabilize RecoveryReason = "WaitForOSDPodsStabilize" LabelNodesWithPendingPods RecoveryReason = "LabelNodesWithPendingPods" ManageCrashLoopBackOffPods RecoveryReason = "ManageCrashLoopBackOffPods" RestartStorageOperator RecoveryReason = "RestartStorageOperator" StorageClusterFitnessCheck RecoveryReason = "StorageClusterFitnessCheck" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.