Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CoreProviderType is a type reserved for Cluster API core repository. CoreProviderType = clusterctlv1.ProviderType("CoreProvider") // BootstrapProviderType is the type associated with codebases that provide // bootstrapping capabilities. BootstrapProviderType = clusterctlv1.ProviderType("BootstrapProvider") // InfrastructureProviderType is the type associated with codebases that provide // infrastructure capabilities. InfrastructureProviderType = clusterctlv1.ProviderType("InfrastructureProvider") // ControlPlaneProviderType is the type associated with codebases that provide // control-plane capabilities. ControlPlaneProviderType = clusterctlv1.ProviderType("ControlPlaneProvider") // IPAMProviderType is the type associated with codebases that provide // IPAM capabilities. IPAMProviderType = clusterctlv1.ProviderType("IPAMProvider") // RuntimeExtensionProviderType is the type associated with codebases that provide // runtime extensions. RuntimeExtensionProviderType = clusterctlv1.ProviderType("RuntimeExtensionProvider") // ProviderTypeUnknown is used when the type is unknown. ProviderTypeUnknown = clusterctlv1.ProviderType("") )
View Source
const (
OPENSTACK = "openstack"
)
View Source
const (
OPENSTACK_URL = "https://github.com/kubernetes-sigs/cluster-api-provider-openstack/releases/download/v0.6.4/infrastructure-components.yaml"
)
Variables ¶
View Source
var DefaultKubeconfigFile = "/home/dcn/github/cluster-api-sdk/capi"
Functions ¶
func CreateReaderWithConfigs ¶
func CreateReaderWithConfigs(configs map[string]string) *config.MemoryReader
Types ¶
type Client ¶
type Client struct { ConfigClient config.Client ProviderClient config.Provider RepositoryClient repository.Client ClusterClient cluster.Client Client client.Client Kubeconfig cluster.Kubeconfig ClusterClientFactoryInput client.ClusterClientFactoryInput }
type Kubeconfig cluster.Kubeconfig
var Clusterctl Client
func CreateNewClient ¶
func (*Client) GetClusterTemplate ¶
func (c *Client) GetClusterTemplate(clusterName string, targetNamespace string, templateUrl string) (string, error)
GetClusterTemplate Function clusterName: name of cluster which will be generated .... targetNamespace: namespace cluster will be deployed infrastructureProvider: infrastructure where cluster will run on flavor: postfix for template cluster
type GetKubeconfigOptions ¶
type GetKubeconfigOptions client.GetKubeconfigOptions
GetKubeconfigOptions carries all the options supported by GetKubeconfig.
type Provider ¶
type Provider struct { Name string Url string ProviderType clusterctlv1.ProviderType }
func CreateProviderConfig ¶
func CreateProviderConfig(name string, url string, providerType clusterctlv1.ProviderType) Provider
type ProviderRepositorySourceOptions ¶
type ProviderRepositorySourceOptions client.ProviderRepositorySourceOptions
ProviderRepositorySourceOptions defines the options to be used when reading a workload cluster template from a provider repository.
Click to show internal directories.
Click to hide internal directories.