clusters

package
v1.17.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Kubeconfig is the filename of the KUBECONFIG file.
	Kubeconfig = "KUBECONFIG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GKECluster

type GKECluster struct {
	// T is a testing interface
	T testing.NTB
	// Name is the name of the cluster
	Name string
	// KubeConfigPath is the path to save the kube config
	KubeConfigPath string
}

GKECluster is a GKE cluster for use in the e2e tests

func (*GKECluster) Connect

func (c *GKECluster) Connect() error

Connect to the GKE cluster

func (*GKECluster) Create

func (c *GKECluster) Create() error

Create the GKE cluster

func (*GKECluster) Delete

func (c *GKECluster) Delete() error

Delete the GKE cluster

func (*GKECluster) Exists

func (c *GKECluster) Exists() (bool, error)

Exists returns whether the GKE cluster exists

type KindCluster

type KindCluster struct {
	// T is a testing interface
	T testing.NTB
	// Name is the name of the cluster
	Name string
	// KubeConfigPath is the path to save the kube config
	KubeConfigPath string
	// TmpDir is the temporary directory for this test
	TmpDir string
	// KubernetesVersion is the version to use when creating the kind cluster
	KubernetesVersion string
	// contains filtered or unexported fields
}

KindCluster is a kind cluster for use in the e2e tests

func (*KindCluster) Connect

func (c *KindCluster) Connect() error

Connect to the kind cluster

func (*KindCluster) Create

func (c *KindCluster) Create() error

Create the kind cluster

func (*KindCluster) Delete

func (c *KindCluster) Delete() error

Delete the kind cluster

func (*KindCluster) Exists

func (c *KindCluster) Exists() (bool, error)

Exists returns whether the KinD cluster exists

type KindVersion

type KindVersion string

KindVersion is a specific Kind version associated with a Kubernetes minor version.

Jump to

Keyboard shortcuts

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