hac

package
v5.14.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const Name = "high-availability-controller"

Name of this controller

Variables

This section is empty.

Functions

This section is empty.

Types

type HAC

type HAC struct {
	*PodDeleter
}

HAC is a high availability controller that watches the nodes Ready -> NotReady transitions and deletes noobaa pods on the node that became unvailable

func NewHAC

func NewHAC(
	req types.NamespacedName,
	client client.Client,
) *HAC

NewHAC initializes a high availability controller reconciler

func (*HAC) Reconcile

func (hac *HAC) Reconcile() (reconcile.Result, error)

Reconcile is called when a node in the cluster transitions from Ready to NotReady state go over the noobaa pods running on this node and force their deletion

type PodDeleter

type PodDeleter struct {
	Client   client.Client
	NodeName string
}

PodDeleter encapsulates an operation of deleting pods on node

func (*PodDeleter) DeletePodsOnNode

func (pd *PodDeleter) DeletePodsOnNode() error

DeletePodsOnNode force delete NooBaa pods on the given node

Jump to

Keyboard shortcuts

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