kubernetesk8s.io/kubernetes/pkg/controller/volume/attachdetach/statusupdater Index | Files

package statusupdater

import "k8s.io/kubernetes/pkg/controller/volume/attachdetach/statusupdater"

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

Index

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.

Source Files

fake_node_status_updater.go node_status_updater.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
3 hours ago

Tools for package owners.