cluster

package
v1.19.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 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 InstallRevisionedIstio

func InstallRevisionedIstio(
	ctx context.Context,
	istioctlBinary, kubeContext, revision, profile string,
) error

func UninstallIstio

func UninstallIstio(istioctlBinary, kubeContext string) error

Types

type Context

type Context struct {
	// The name of the Kubernetes cluster
	// The assumption is that when multiple clusters are running at once, they will each have unique names
	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

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