Documentation
¶
Index ¶
- Constants
- func CordonNode(ctx context.Context, k8s *kubernetes.Clientset, node *corev1.Node, ...) error
- func CreateNginxPodInNode(ctx context.Context, k8s *kubernetes.Clientset, ...) error
- func DeleteNode(ctx context.Context, k8s *kubernetes.Clientset, name string) error
- func DeletePod(ctx context.Context, k8s *kubernetes.Clientset, name, namespace string) error
- func DrainNode(ctx context.Context, k8s *kubernetes.Clientset, node *corev1.Node) error
- func EnsureNodeWithIPIsDeleted(ctx context.Context, k8s *kubernetes.Clientset, internalIP string) error
- func ExecPodWithRetries(ctx context.Context, config *restclient.Config, k8s *kubernetes.Clientset, ...) (stdout, stderr string, err error)
- func GetDaemonSet(ctx context.Context, logger logr.Logger, k8s *kubernetes.Clientset, ...) (*appsv1.DaemonSet, error)
- func GetNginxPodName(name string) string
- func GetPodLogsWithRetries(ctx context.Context, k8s *kubernetes.Clientset, name, namespace string) (logs string, err error)
- func IsPreviousVersionSupported(kubernetesVersion string) (bool, error)
- func PreviousVersion(kubernetesVersion string) (string, error)
- func UncordonNode(ctx context.Context, k8s *kubernetes.Clientset, node *corev1.Node) error
- func WaitForHybridNodeToBeNotReady(ctx context.Context, k8s *kubernetes.Clientset, nodeName string, ...) error
- func WaitForHybridNodeToBeReady(ctx context.Context, k8s *kubernetes.Clientset, nodeName string, ...) error
- func WaitForNode(ctx context.Context, k8s *kubernetes.Clientset, internalIP string, ...) (*corev1.Node, error)
- func WaitForNodeToHaveVersion(ctx context.Context, k8s *kubernetes.Clientset, nodeName, targetVersion string, ...) (*corev1.Node, error)
- type VerifyNode
Constants ¶
View Source
const (
MinimumVersion = "1.25"
)
Variables ¶
This section is empty.
Functions ¶
func CordonNode ¶
func CreateNginxPodInNode ¶
func DeleteNode ¶
func ExecPodWithRetries ¶ added in v1.0.2
func ExecPodWithRetries(ctx context.Context, config *restclient.Config, k8s *kubernetes.Clientset, name, namespace string, cmd ...string) (stdout, stderr string, err error)
Retries up to 5 times to avoid connection errors
func GetDaemonSet ¶ added in v1.0.2
func GetNginxPodName ¶
func GetPodLogsWithRetries ¶ added in v1.0.2
func GetPodLogsWithRetries(ctx context.Context, k8s *kubernetes.Clientset, name, namespace string) (logs string, err error)
Retries up to 5 times to avoid connection errors
func PreviousVersion ¶
func UncordonNode ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.