local

package
v0.0.0-...-8540621 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterProvider

type ClusterProvider struct {
}

ClusterProvider uses whatever cluster your local kubeconfig points to.

func (*ClusterProvider) Close

func (p *ClusterProvider) Close() error

Close does nothing for this cluster provider.

func (*ClusterProvider) GetCluster

func (p *ClusterProvider) GetCluster(ctx context.Context, spec *experimentpb.ClusterSpec) (*cluster.Context, func(), error)

GetCluster ignores the passed in `spec` and returns a `cluster.Context` pointing to your local kubeconfig. The kubeconfig defaults to `~/.kube/config` and can be changed with the KUBECONFIG environment variable, or `--kubeconfig` on the command line.

Jump to

Keyboard shortcuts

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