kubewaiter

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package kubewaiter is used to wait for the Kubernetes API to be available.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudKubeAPIWaiter

type CloudKubeAPIWaiter struct{}

CloudKubeAPIWaiter waits for the Kubernetes API to be available.

func (*CloudKubeAPIWaiter) Wait

func (w *CloudKubeAPIWaiter) Wait(ctx context.Context, kubernetesClient KubernetesClient) error

Wait waits for the Kubernetes API to be available. Note that the kubernetesClient must have the kubeconfig already set.

type KubernetesClient

type KubernetesClient interface {
	ListAllNamespaces(ctx context.Context) (*corev1.NamespaceList, error)
}

KubernetesClient is an interface for the Kubernetes client. It is used to check if the Kubernetes API is available.

Jump to

Keyboard shortcuts

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