node

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

Register register the longhorn node CRD controller

Types

type Controller

type Controller struct {
	BlockDevices     ctldiskv1.BlockDeviceController
	BlockDeviceCache ctldiskv1.BlockDeviceCache
	Nodes            ctllonghornv1.NodeController
	// contains filtered or unexported fields
}

func (*Controller) OnNodeChange added in v0.6.1

func (c *Controller) OnNodeChange(_ string, node *longhornv1.Node) (*longhornv1.Node, error)

OnChange watch the node CR on change and sync up to block device CR

func (*Controller) OnNodeDelete

func (c *Controller) OnNodeDelete(_ string, node *longhornv1.Node) (*longhornv1.Node, error)

OnNodeDelete watch the node CR on remove and delete node related block devices

Jump to

Keyboard shortcuts

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