Documentation
¶
Index ¶
- func BuildEnvironment(runtime string) map[string]string
- func ResolveRuntime(value string) string
- type Provider
- func (p *Provider) APIReady(ctx context.Context, kubeconfigPath string) (bool, string, error)
- func (p *Provider) ClusterExists(ctx context.Context, clusterName string, env map[string]string) (bool, error)
- func (p *Provider) CreateCluster(ctx context.Context, clusterName, configPath string, env map[string]string) error
- func (p *Provider) DeleteCluster(ctx context.Context, clusterName string, env map[string]string) error
- func (p *Provider) ExportKubeconfig(ctx context.Context, clusterName, kubeconfigPath string, env map[string]string) error
- func (p *Provider) WaitReady(ctx context.Context, kubeconfigPath string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildEnvironment ¶
BuildEnvironment constructs the environment required for Kind CLI invocations.
func ResolveRuntime ¶
ResolveRuntime normalizes the Kind runtime selection. Precedence: explicit value, CONTAINER_RUNTIME, KIND_EXPERIMENTAL_PROVIDER, docker.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider manages Kind cluster lifecycle operations through the kind and kubectl CLIs.
func NewProvider ¶
func NewProvider() *Provider
func NewProviderWithRunner ¶
func NewProviderWithRunner(runner commandRunner) *Provider