Documentation ¶
Overview ¶
Package openstack generates Machine objects for openstack.
Package openstack generates Machine objects for openstack.
Package openstack generates Machine objects for openstack.
Index ¶
- Constants
- func CheckNetworkExtensionAvailability(ctx context.Context, cloud, alias string, opts *clientconfig.ClientOpts) (bool, error)
- func ConfigMasters(machines []machineapi.Machine, clusterID string)
- func GenerateMachines(clusterID string, config *types.InstallConfig, pool *types.MachinePool, ...) ([]*asset.RuntimeFile, error)
- func MachineSets(ctx context.Context, clusterID string, config *types.InstallConfig, ...) ([]*clusterapi.MachineSet, error)
- func Machines(ctx context.Context, clusterID string, config *types.InstallConfig, ...) ([]machineapi.Machine, *machinev1.ControlPlaneMachineSet, error)
Constants ¶
const (
// CloudName is a constant containing the name of the cloud used in the internal cloudsSecret
CloudName = "openstack"
)
Variables ¶
This section is empty.
Functions ¶
func CheckNetworkExtensionAvailability ¶ added in v0.90.0
func CheckNetworkExtensionAvailability(ctx context.Context, cloud, alias string, opts *clientconfig.ClientOpts) (bool, error)
CheckNetworkExtensionAvailability interrogates the OpenStack API to validate the availability of a given Neutron extension. The `opts` parameter is provided for external consumers needing to configure the client e.g. with custom certs. If unspecified (nil), a default client is built based on the specified `cloud`.
func ConfigMasters ¶ added in v0.9.2
func ConfigMasters(machines []machineapi.Machine, clusterID string)
ConfigMasters sets the PublicIP flag and assigns a set of load balancers to the given machines
func GenerateMachines ¶ added in v0.90.0
func GenerateMachines(clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage, role string) ([]*asset.RuntimeFile, error)
GenerateMachines returns manifests and runtime objects to provision the control plane (including bootstrap, if applicable) nodes using CAPI.
func MachineSets ¶ added in v0.9.2
func MachineSets(ctx context.Context, clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage, role, userDataSecret string) ([]*clusterapi.MachineSet, error)
MachineSets returns the MachineSets encoded by the given machine-pool. The number of returned MachineSets, while being capped to the number of replicas, depends on the variable-length fields in the machine-pool. Each MachineSet generates a set of identical Machines; to encode for Machines spread on, say, three availability zones, three MachineSets must be produced. Note that for each variable-length field (currently: Compute availability zones, Storage availability zones and Root volume types), when more than one is specified, values of identical index are grouped in the same MachineSet.
func Machines ¶ added in v0.9.2
func Machines(ctx context.Context, clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage, role, userDataSecret string) ([]machineapi.Machine, *machinev1.ControlPlaneMachineSet, error)
Machines returns a list of machines for a machinepool.
Types ¶
This section is empty.