controller

package
v0.0.0-...-452dcce Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterController

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

ClusterController is the director for they sync and build

func New

New constructs a new ClusterController from an API object

func (*ClusterController) Sync

func (c *ClusterController) Sync() error

Sync syncs the current state to desired TODO: Make this able to roll back on error state on first creation

type ClusterStatusManager

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

ClusterStatusManager updates and calculates a clusters status

func NewStatusManager

func NewStatusManager(statusReporter nodeStatusReporter, listerUpdater resourceListerUpdater) *ClusterStatusManager

NewStatusManager returns a new ClusterStatusController to get the status of the cluster

func (*ClusterStatusManager) Update

Update calculates the current status and updates the k8s resource status accordingly

type PodFinalizerController

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

PodFinalizerController is the controller for cassandra node (pod) finalizers

func NewPodFinalizerController

func NewPodFinalizerController(k8sDriver k8s.Client, nodetoolDriver *nodetool.Executor) *PodFinalizerController

NewPodFinalizerController builds a new PodFinalizerController

func (*PodFinalizerController) Converge

func (c *PodFinalizerController) Converge(node *corev1.Pod) error

Converge takes a node verifies it is supposed to have the finalizer and adds it if not already there

func (*PodFinalizerController) Process

func (c *PodFinalizerController) Process(node *corev1.Pod) error

Process pod for finalizer

Jump to

Keyboard shortcuts

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