clients

package
v2.23.16 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Setup(ctx context.Context, log *zap.SugaredLogger) error
	CreateProject(ctx context.Context, log *zap.SugaredLogger, name string) (string, error)
	EnsureSSHKeys(ctx context.Context, log *zap.SugaredLogger) error
	CreateCluster(ctx context.Context, log *zap.SugaredLogger, scenario scenarios.Scenario) (*kubermaticv1.Cluster, error)
	CreateMachineDeployments(ctx context.Context, log *zap.SugaredLogger, scenario scenarios.Scenario, userClusterClient ctrlruntimeclient.Client, cluster *kubermaticv1.Cluster) error
	DeleteCluster(ctx context.Context, log *zap.SugaredLogger, cluster *kubermaticv1.Cluster, timeout time.Duration) error
	DeleteProject(ctx context.Context, log *zap.SugaredLogger, id string, timeout time.Duration) error
}

Client represents a client that can talk to a KKP system. This interface and the single KubeClient implementation are vestigial from the pre-2.22 era where tests could also be run using the KKP REST API.

func NewKubeClient

func NewKubeClient(opts *ctypes.Options) Client

Jump to

Keyboard shortcuts

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