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
Click to show internal directories.
Click to hide internal directories.