Documentation ¶
Index ¶
- type Client
- func (c *Client) AddNodeLabels(nodeName string, labels map[string]string) error
- func (c *Client) AddNodeResources(nodeName string, resources map[string]int) error
- func (c *Client) RemoveNodeLabels(nodeName string, labels map[string]string) error
- func (c *Client) RemoveNodeResources(nodeName string, resources map[string]int) error
- type Patch
- type WatchDog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides convenient API for interacting with k8s core API.
func (*Client) AddNodeLabels ¶
AddNodeLabels adds passed labels to node labels.
func (*Client) AddNodeResources ¶
AddNodeResources adds passed resources to node capacity.
func (*Client) RemoveNodeLabels ¶
RemoveNodeLabels removes nodes labels from node
type Patch ¶
type Patch struct { NodeLabels map[string]string `yaml:"labels"` NodeResources map[string]int `yaml:"resources"` }
Patch represents changes that need to be applied to the node.
type WatchDog ¶
type WatchDog struct { NodeName string NodeConfigPath string Client *Client DefaultLabels map[string]string // contains filtered or unexported fields }
WatchDog is used to perform node patch and cleanup.
Click to show internal directories.
Click to hide internal directories.