nodeagent

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDaemonSetNotFound = errors.New("daemonset not found")
)

Functions

func GetPodSpec added in v1.12.0

func GetPodSpec(ctx context.Context, kubeClient kubernetes.Interface, namespace string) (*v1.PodSpec, error)

func IsRunning

func IsRunning(ctx context.Context, kubeClient kubernetes.Interface, namespace string) error

IsRunning checks if the node agent daemonset is running properly. If not, return the error found

func IsRunningInNode

func IsRunningInNode(ctx context.Context, namespace string, nodeName string, crClient ctrlclient.Client) error

IsRunningInNode checks if the node agent pod is running properly in a specified node. If not, return the error found

Types

type Configs added in v1.13.0

type Configs struct {
	// LoadConcurrency is the config for data path load concurrency per node.
	LoadConcurrency *LoadConcurrency `json:"loadConcurrency,omitempty"`
}

func GetConfigs added in v1.13.0

func GetConfigs(ctx context.Context, namespace string, kubeClient kubernetes.Interface) (*Configs, error)

type LoadConcurrency added in v1.13.0

type LoadConcurrency struct {
	// GlobalConfig specifies the concurrency number to all nodes for which per-node config is not specified
	GlobalConfig int `json:"globalConfig,omitempty"`

	// PerNodeConfig specifies the concurrency number to nodes matched by rules
	PerNodeConfig []RuledConfigs `json:"perNodeConfig,omitempty"`
}

type RuledConfigs added in v1.13.0

type RuledConfigs struct {
	// NodeSelector specifies the label selector to match nodes
	NodeSelector metav1.LabelSelector `json:"nodeSelector"`

	// Number specifies the number value associated to the matched nodes
	Number int `json:"number"`
}

Jump to

Keyboard shortcuts

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