clusterapi

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClusterAPI is the core provider for cluster-api.
	ClusterAPI = Provider{
		Name:    "cluster-api",
		Sources: sets.New("cluster-api"),
	}

	// EnvTest is the provider for the local control plane.
	EnvTest = Provider{
		Name:    "envtest",
		Sources: sets.New("kube-apiserver", "etcd"),
	}

	// AWS is the provider for creating resources in AWS.
	AWS = infrastructureProvider("aws")
	// Azure is the provider for creating resources in Azure.
	Azure = infrastructureProvider("azure")
	// AzureASO is a companion component to Azure that is used to create resources declaratively.
	AzureASO = infrastructureProvider("azureaso")
	// GCP is the provider for creating resources in GCP.
	GCP = infrastructureProvider("gcp")
	// IBMCloud is the provider for creating resources in IBM Cloud and powervs.
	IBMCloud = infrastructureProvider("ibmcloud")
	// Nutanix is the provider for creating resources in Nutanix.
	Nutanix = infrastructureProvider("nutanix")
	// OpenStack is the provider for creating resources in OpenStack.
	OpenStack = infrastructureProvider("openstack")
	// VSphere is the provider for creating resources in vSphere.
	VSphere = infrastructureProvider("vsphere")
)
View Source
var Mirror embed.FS

Mirror is the embedded data for the providers.

View Source
var (
	// Scheme is the scheme used by the local control plane.
	Scheme = scheme.Scheme
)

Functions

func UnpackClusterAPIBinary

func UnpackClusterAPIBinary(dir string) error

UnpackClusterAPIBinary unpacks the cluster-api binary from the embedded data so that it can be run to create the infrastructure for the cluster.

func UnpackEnvtestBinaries

func UnpackEnvtestBinaries(dir string) error

UnpackEnvtestBinaries unpacks the envtest binaries from the embedded data so that it can be run to create the infrastructure for the cluster.

Types

type Interface

type Interface interface {
	Run(ctx context.Context) error
	State() SystemState
	Client() client.Client
	Teardown()
	CleanEtcd()
}

Interface is the interface for the cluster-api system.

func System

func System() Interface

System returns the cluster-api system.

type Provider

type Provider struct {
	// Name of the provider.
	Name string
	// Sources of the provider.
	Sources sets.Set[string]
}

Provider is a Cluster API provider.

func (Provider) Extract

func (p Provider) Extract(dir string) error

Extract extracts the provider from the embedded data into the specified directory.

type SystemState added in v0.90.0

type SystemState string

SystemState is the state of the cluster-api system.

const (
	// SystemStateRunning indicates the system is running.
	SystemStateRunning SystemState = "running"
	// SystemStateStopped indicates the system is stopped.
	SystemStateStopped SystemState = "stopped"

	// ArtifactsDir is the directory where output (manifests, kubeconfig, etc.)
	// related to CAPI-based installs are stored.
	ArtifactsDir = ".clusterapi_output"
)

Directories

Path Synopsis
internal
process/flock
Package flock is copied from k8s.io/kubernetes/pkg/util/flock to avoid importing k8s.io/kubernetes as a dependency.
Package flock is copied from k8s.io/kubernetes/pkg/util/flock to avoid importing k8s.io/kubernetes as a dependency.

Jump to

Keyboard shortcuts

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