Documentation ¶
Overview ¶
Package utils contains some utility functions used by the virtual node controller.
Index ¶
- func CheckVirtualKubeletFlagsConsistence(ctx context.Context, cl client.Client, vn *virtualkubeletv1alpha1.VirtualNode, ...) (bool, error)
- func CheckVirtualKubeletPodAbsence(ctx context.Context, cl client.Client, vn *virtualkubeletv1alpha1.VirtualNode) error
- func GetVirtualKubeletDeployment(ctx context.Context, cl client.Client, ...) (*appsv1.Deployment, error)
- type Flag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVirtualKubeletFlagsConsistence ¶
func CheckVirtualKubeletFlagsConsistence( ctx context.Context, cl client.Client, vn *virtualkubeletv1alpha1.VirtualNode, flags ...Flag) (bool, error)
CheckVirtualKubeletFlagsConsistence checks if the VirtualKubelet args are consistent with the flag list provided. It returns true if all the flags are consistent, false otherwise. A flag is not consistent if it is present in the VirtualKubelet args with a different value.
func CheckVirtualKubeletPodAbsence ¶
func CheckVirtualKubeletPodAbsence(ctx context.Context, cl client.Client, vn *virtualkubeletv1alpha1.VirtualNode) error
CheckVirtualKubeletPodAbsence checks if a VirtualNode's VirtualKubelet pods are absent.
func GetVirtualKubeletDeployment ¶
func GetVirtualKubeletDeployment(ctx context.Context, cl client.Client, virtualNode *virtualkubeletv1alpha1.VirtualNode) (*appsv1.Deployment, error)
GetVirtualKubeletDeployment returns the VirtualKubelet Deployment of a VirtualNode.
Types ¶
Click to show internal directories.
Click to hide internal directories.