kube

package
v0.0.0-...-52e0d5c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKube

func BuildKube(origCfg cluster.Config, topology cluster.Topology) (cluster.Cluster, error)

Types

type Cluster

type Cluster struct {

	// CLIClient is embedded to interact with the kube cluster.
	kube.CLIClient

	// Topology is embedded to include common functionality.
	cluster.Topology
	// contains filtered or unexported fields
}

Cluster for a Kubernetes cluster. Provides access via a kube.Client.

func (*Cluster) CanDeploy

func (c *Cluster) CanDeploy(config echo.Config) (echo.Config, bool)

CanDeploy for a kube cluster returns true if the config is a non-vm, or if the cluster supports fake pod-based VMs.

func (Cluster) Filename

func (c Cluster) Filename() string

Filename of the kubeconfig file for this cluster. TODO(nmittler): Remove the need for this by changing operator to use provided kube clients directly.

func (*Cluster) OverrideTopology

func (c *Cluster) OverrideTopology(fn func(cluster.Topology) cluster.Topology)

OverrideTopology allows customizing the relationship between this and other clusters for a single suite. This practice is discouraged, and separate test jobs should be created on a per-topology bassis. TODO remove this when centralistiod test is isolated as it's own job

func (*Cluster) String

func (c *Cluster) String() string

Jump to

Keyboard shortcuts

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