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.
Click to show internal directories.
Click to hide internal directories.