cluster

package
v1.17.0-beta23 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// The name of the Kubernetes cluster
	Name string

	// The context of the Kubernetes cluster
	KubeContext string

	// RestConfig holds the common attributes that can be passed to a Kubernetes client on initialization
	RestConfig *rest.Config

	// A CLI for interacting with Kubernetes cluster
	Cli *kubectl.Cli

	// A client to perform CRUD operations on the Kubernetes Cluster
	Client client.Client

	// A set of clients for interacting with the Kubernetes Cluster
	Clientset *kubernetes.Clientset
}

Context contains the metadata about a Kubernetes cluster It also includes useful utilities for interacting with that cluster

func MustKindContext

func MustKindContext(clusterName string) *Context

MustKindContext returns the Context for a KinD cluster with the given name

Jump to

Keyboard shortcuts

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