clusters

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareKubeClient

func PrepareKubeClient(kubeconfigPath string) (*rest.Config, error)

func RenderAndApply

func RenderAndApply(name string, template string, context map[string]string, kubeconfig *rest.Config) error

func WaitForAPIServerReachable

func WaitForAPIServerReachable(kubeconfig *rest.Config, timeout time.Duration) (bool, error)

func WaitForAllNodes

func WaitForAllNodes(kubeconfig *rest.Config, timeout time.Duration, desiredControlPlaneNodes, desiredWorkerNodes int) (bool, error)

func WaitForKubeconfig

func WaitForKubeconfig(kubeconfig *rest.Config, cluster string, timeout time.Duration) (bool, error)

Types

type Cluster

type Cluster interface {
	// CreateCluster creates a new cluster
	CreateCluster() error
	// DeleteCluster deletes a cluster
	DeleteCluster() error
	// GetKubeConfig returns the kubeconfig
	GetKubeConfig() (string, error)
	// GetClusterStatus returns the status of a cluster
	GetClusterStatus() (bool, error)
	// CreateGreeting prints a greeting message after creating a cluster
	CreateGreeting()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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