kwok

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KwokImage = "registry.k8s.io/kwok/cluster:v0.2.0-k8s.v1.27.1"
	KwokPort  = "8080"
)

Variables

This section is empty.

Functions

func StartCluster

func StartCluster(t *testing.T, ctx context.Context) (*kubernetes.Clientset, error)

Types

type KwokCloudProvider

type KwokCloudProvider struct {
	K8sClient kubernetes.Interface
}

func CreateCloudProvider

func CreateCloudProvider(ctx context.Context, cfg *config.Config) (KwokCloudProvider, error)

func (KwokCloudProvider) CreateNode

func (k KwokCloudProvider) CreateNode(ctx context.Context, name string) error

func (KwokCloudProvider) PrepareTermination

func (p KwokCloudProvider) PrepareTermination(ctx context.Context, cloudProviderNodeId string) (string, error)

func (KwokCloudProvider) TerminateNode

func (p KwokCloudProvider) TerminateNode(ctx context.Context, cloudProviderNodeId string) (string, error)

func (KwokCloudProvider) ValidateConfig

func (p KwokCloudProvider) ValidateConfig() error

Jump to

Keyboard shortcuts

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