openstack

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: 23 Imported by: 71

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

View Source
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.

Jump to

Keyboard shortcuts

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