validation

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMachinePool

func ValidateMachinePool(p *openstack.MachinePool, ci *CloudInfo, controlPlane bool, fldPath *field.Path) field.ErrorList

ValidateMachinePool checks that the specified machine pool is valid.

func ValidatePlatform

func ValidatePlatform(p *openstack.Platform, n *types.Networking, ci *CloudInfo) field.ErrorList

ValidatePlatform checks that the specified platform is valid.

Types

type CloudInfo

type CloudInfo struct {
	APIFIP            *floatingips.FloatingIP
	ExternalNetwork   *networks.Network
	Flavors           map[string]Flavor
	IngressFIP        *floatingips.FloatingIP
	MachinesSubnet    *subnets.Subnet
	OSImage           *images.Image
	ComputeZones      []string
	VolumeZones       []string
	VolumeTypes       []string
	NetworkExtensions []extensions.Extension
	Quotas            []quota.Quota
	// contains filtered or unexported fields
}

CloudInfo caches data fetched from the user's openstack cloud

func GetCloudInfo

func GetCloudInfo(ic *types.InstallConfig) (*CloudInfo, error)

GetCloudInfo fetches and caches metadata from openstack

type Flavor

type Flavor struct {
	flavors.Flavor
	Baremetal bool
}

Flavor embeds information from the Gophercloud Flavor struct and adds information on whether a flavor is of baremetal type.

Jump to

Keyboard shortcuts

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