Documentation
¶
Index ¶
- Constants
- Variables
- func GetAnnotationValue(ctx context.Context, kubeClient kubernetes.Interface, namespace string, ...) (string, error)
- func GetConfigs(ctx context.Context, namespace string, kubeClient kubernetes.Interface, ...) (*velerotypes.NodeAgentConfigs, error)
- func GetHostPodPath(ctx context.Context, kubeClient kubernetes.Interface, namespace string, ...) (string, error)
- func GetLabelValue(ctx context.Context, kubeClient kubernetes.Interface, namespace string, ...) (string, error)
- func GetPodSpec(ctx context.Context, kubeClient kubernetes.Interface, namespace string, ...) (*corev1api.PodSpec, error)
- func GetToleration(ctx context.Context, kubeClient kubernetes.Interface, namespace string, ...) (*corev1api.Toleration, error)
- func HostPodVolumeMountPath() string
- func HostPodVolumeMountPathWin() string
- func IsRunningInNode(ctx context.Context, namespace string, nodeName string, ...) error
- func IsRunningOnLinux(ctx context.Context, kubeClient kubernetes.Interface, namespace string) error
- func IsRunningOnWindows(ctx context.Context, kubeClient kubernetes.Interface, namespace string) error
- func KbClientIsRunningInNode(ctx context.Context, namespace string, nodeName string, ...) error
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 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 GetLabelValue ¶ added in v1.15.1
func GetPodSpec ¶ added in v1.12.0
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 IsRunningOnWindows ¶ added in v1.16.0
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.
Click to show internal directories.
Click to hide internal directories.