cluster

package
v1.17.0-beta28 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIstioBugReport

func CreateIstioBugReport(ctx context.Context, istioctlBinary, kubeContext, artifactOutputDir string)

CreateIstioBugReport generates an istioctl bug report and moves it to the _output directory

func GetIstioctl

func GetIstioctl(ctx context.Context) (string, error)

func InstallMinimalIstio

func InstallMinimalIstio(
	ctx context.Context,
	istioctlBinary, kubeContext string,
) error

func UninstallIstio

func UninstallIstio(istioctlBinary, kubeContext string) error

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

	// Cluster id is a unique identifier for the cluster running in CI
	ClusterId string
}

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

func MustKindContextWithScheme

func MustKindContextWithScheme(clusterName string, scheme *runtime.Scheme) *Context

MustKindContextWithScheme returns the Context for a KinD cluster with the given name and scheme

Jump to

Keyboard shortcuts

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