nodeagent

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// HostPodVolumeMount is the name of the volume in node-agent for host-pod mount
	HostPodVolumeMount = "host-pods"

	// HostPodVolumeMountPoint is the mount point of the volume in node-agent for host-pod mount
	HostPodVolumeMountPoint = "host_pods"
)

Variables

View Source
var (
	ErrDaemonSetNotFound           = errors.New("daemonset not found")
	ErrNodeAgentLabelNotFound      = errors.New("node-agent label not found")
	ErrNodeAgentAnnotationNotFound = errors.New("node-agent annotation not found")
	ErrNodeAgentTolerationNotFound = errors.New("node-agent toleration not found")
)

Functions

func GetAnnotationValue added in v1.16.0

func GetAnnotationValue(ctx context.Context, kubeClient kubernetes.Interface, namespace string, key string, osType string) (string, error)

func GetConfigs added in v1.13.0

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

func GetHostPodPath added in v1.17.0

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

func GetLabelValue added in v1.15.1

func GetLabelValue(ctx context.Context, kubeClient kubernetes.Interface, namespace string, key string, osType string) (string, error)

func GetPodSpec added in v1.12.0

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

func GetToleration added in v1.17.0

func GetToleration(ctx context.Context, kubeClient kubernetes.Interface, namespace string, key string, osType string) (*corev1api.Toleration, error)

func HostPodVolumeMountPath added in v1.17.0

func HostPodVolumeMountPath() string

func HostPodVolumeMountPathWin added in v1.17.0

func HostPodVolumeMountPathWin() string

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 through controller client. If not, return the error found

func IsRunningOnLinux added in v1.16.0

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

func IsRunningOnWindows added in v1.16.0

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

func KbClientIsRunningInNode added in v1.15.1

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

KbClientIsRunningInNode checks if the node agent pod is running properly in a specified node through kube client. If not, return the error found

Types

This section is empty.

Jump to

Keyboard shortcuts

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