Documentation ¶
Overview ¶
Package node defines utilities for the NodeConfiguration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrdLabel ¶
func GetCrdLabel(cfg *nodeconfigv1.NodeConfiguration) string
GetCrdLabel concatenates the namespace and name to create a unique label
Types ¶
type ConfigurationClient ¶
type ConfigurationClient struct {
// contains filtered or unexported fields
}
ConfigurationClient is the client for the NodeConfiguration CRD
func NewForConfig ¶
func NewForConfig(c *rest.Config, namespace string) (*ConfigurationClient, error)
NewForConfig creates a new ConfigurationClient based on the given restConfig and namespace
func (*ConfigurationClient) WatchResources ¶
func (e *ConfigurationClient) WatchResources(addFunc func(obj interface{}), updateFunc func(oldObj, newObj interface{}), deleteFunc func(obj interface{}), stopCh <-chan struct{})
WatchResources creates an informer which watches for new or updated NodeConfigurations and updates the store accordingly This will also trigger the creation and removal of nodes when applicable
Click to show internal directories.
Click to hide internal directories.