lvmetrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WatchLVMd

func WatchLVMd(ctx context.Context, conn *grpc.ClientConn, patcher *NodePatcher) error

WatchLVMd receives LVM volume group metrics and updates annotations of Node.

Types

type NodeMetrics

type NodeMetrics struct {
	FreeBytes uint64
}

NodeMetrics represents nodes metrics

func (*NodeMetrics) Annotate

func (n *NodeMetrics) Annotate(node *corev1.Node)

Annotate adds annotations to node

type NodePatcher

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

NodePatcher patches node annotations

func NewNodePatcher

func NewNodePatcher(nodeName string) (*NodePatcher, error)

NewNodePatcher creates NodePatcher

func (*NodePatcher) Patch

func (n *NodePatcher) Patch(met *NodeMetrics) error

Patch updates node annotations with patch

Jump to

Keyboard shortcuts

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