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 ¶
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 ¶
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.
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.
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. |
Click to show internal directories.
Click to hide internal directories.