kind

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package kind provides utilities for ensuring the presence and correct version of the Kind binary, as well as functions for installing and managing the Kind binary in a local project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(ctx context.Context, provider *cluster.Provider, name string, opts ...CreateClusterOption) error

CreateCluster creates a Kind cluster with the given name.

func IsClusterRunning

func IsClusterRunning(provider *cluster.Provider, clusterName string) (bool, error)

IsClusterRunning checks if a Kind cluster with the given name is running.

Types

type CreateClusterOption

type CreateClusterOption func(*CreateClusterOptions)

CreateClusterOption is the option for creating a Kind cluster.

func WithConfigFile

func WithConfigFile(configFile string) CreateClusterOption

WithConfigFile sets the config file for creating a Kind cluster.

func WithK8sVersion

func WithK8sVersion(k8sVersion string) CreateClusterOption

WithK8sVersion sets the Kubernetes version for creating a Kind cluster.

func WithNetworks

func WithNetworks(networks []string) CreateClusterOption

WithNetworks sets the network for creating a Kind cluster.

type CreateClusterOptions

type CreateClusterOptions struct {
	ConfigFile string
	K8sVersion string
	Networks   []string
}

CreateClusterOptions are the options for creating a Kind cluster.

Jump to

Keyboard shortcuts

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