openstack

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "openstack.machine.gardener.cloud"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder used to register the Shoot resource.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type MachineProviderConfig

type MachineProviderConfig struct {
	metav1.TypeMeta

	Spec MachineProviderConfigSpec
}

MachineProviderConfig contains OpenStack specific configuration for a machine.

func (*MachineProviderConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineProviderConfig.

func (*MachineProviderConfig) DeepCopyInto

func (in *MachineProviderConfig) DeepCopyInto(out *MachineProviderConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineProviderConfig) DeepCopyObject

func (in *MachineProviderConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineProviderConfigSpec

type MachineProviderConfigSpec struct {
	// ImageID is the ID of image used by the machine.
	ImageID string
	// ImageName is the name of the image used the machine. If ImageID is specified, it takes priority over ImageName.
	ImageName string
	// Region is the region the machine should belong to.
	Region string
	// AvailabilityZone is the availability zone the machine belongs.
	AvailabilityZone string
	// FlavorName is the flavor of the machine.
	FlavorName string
	// KeyName is the name of the key pair used for SSH access.
	KeyName string
	// SecurityGroups is a list of security groups the instance should belong to.
	SecurityGroups []string
	// Tags is a map of key-value pairs that annotate the instance. Tags are stored in the instance's Metadata field.
	Tags map[string]string
	// NetworkID is the ID of the network the instance should belong to.
	NetworkID string
	// SubnetID is the ID of the subnet the instance should belong to. If SubnetID is not specified
	SubnetID *string
	// PodNetworkCidr is the CIDR range for the pods assigned to this instance.
	PodNetworkCidr string
	// The size of the root disk used for the instance.
	RootDiskSize int
	// The type of the root disk type used for the instance
	RootDiskType *string
	// UseConfigDrive enables the use of configuration drives for the instance.
	UseConfigDrive *bool
	// ServerGroupID is the ID of the server group this instance should belong to.
	ServerGroupID *string
	// Networks is a list of networks the instance should belong to. Networks is mutually exclusive with the NetworkID option
	// and only one should be specified.
	Networks []OpenStackNetwork
}

MachineProviderConfigSpec is the specification for an OpenStack instance.

func (*MachineProviderConfigSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineProviderConfigSpec.

func (*MachineProviderConfigSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenStackNetwork

type OpenStackNetwork struct {
	// Id is the ID of a network the instance should belong to.
	Id string
	// Name is the name of a network the instance should belong to. If Id is specified, it takes priority over Name.
	Name string
	// PodNetwork specifies whether this network is part of the pod network.
	PodNetwork bool
}

OpenStackNetwork describes a network this instance should belong to.

func (*OpenStackNetwork) DeepCopy

func (in *OpenStackNetwork) DeepCopy() *OpenStackNetwork

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackNetwork.

func (*OpenStackNetwork) DeepCopyInto

func (in *OpenStackNetwork) DeepCopyInto(out *OpenStackNetwork)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
Package v1alpha1 is a version of the API.
Package v1alpha1 is a version of the API.

Jump to

Keyboard shortcuts

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