statusupdater

package
v1.31.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 66

Documentation

Overview

Package statusupdater implements interfaces that enable updating the status of API objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeStatusUpdater

type NodeStatusUpdater interface {
	// Gets a list of node statuses that should be updated from the actual state
	// of the world and updates them.
	UpdateNodeStatuses(logger klog.Logger) error
	// Update any pending status change for the given node
	UpdateNodeStatusForNode(logger klog.Logger, nodeName types.NodeName) error
}

NodeStatusUpdater defines a set of operations for updating the VolumesAttached field in the Node Status.

func NewFakeNodeStatusUpdater

func NewFakeNodeStatusUpdater(returnError bool) NodeStatusUpdater

func NewNodeStatusUpdater

func NewNodeStatusUpdater(
	kubeClient clientset.Interface,
	nodeLister corelisters.NodeLister,
	actualStateOfWorld cache.ActualStateOfWorld) NodeStatusUpdater

NewNodeStatusUpdater returns a new instance of NodeStatusUpdater.

Jump to

Keyboard shortcuts

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