Help us shape the future of Go! Take the 2026 Go Developer Survey

v1alpha1

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 is a version of the API.

Index

Constants

View Source
const (
	GroupName = "openstack.machine.gardener.cloud"
	Version   = "v1alpha1"
)

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder used to register the Shoot resource.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_openstack_MachineProviderConfigSpec_To_v1alpha1_MachineProviderConfigSpec

func Convert_openstack_MachineProviderConfigSpec_To_v1alpha1_MachineProviderConfigSpec(in *openstack.MachineProviderConfigSpec, out *MachineProviderConfigSpec, s conversion.Scope) error

Convert_openstack_MachineProviderConfigSpec_To_v1alpha1_MachineProviderConfigSpec is an autogenerated conversion function.

func Convert_openstack_MachineProviderConfig_To_v1alpha1_MachineProviderConfig

func Convert_openstack_MachineProviderConfig_To_v1alpha1_MachineProviderConfig(in *openstack.MachineProviderConfig, out *MachineProviderConfig, s conversion.Scope) error

Convert_openstack_MachineProviderConfig_To_v1alpha1_MachineProviderConfig is an autogenerated conversion function.

func Convert_openstack_OpenStackNetwork_To_v1alpha1_OpenStackNetwork

func Convert_openstack_OpenStackNetwork_To_v1alpha1_OpenStackNetwork(in *openstack.OpenStackNetwork, out *OpenStackNetwork, s conversion.Scope) error

Convert_openstack_OpenStackNetwork_To_v1alpha1_OpenStackNetwork is an autogenerated conversion function.

func Convert_v1alpha1_MachineProviderConfigSpec_To_openstack_MachineProviderConfigSpec

func Convert_v1alpha1_MachineProviderConfigSpec_To_openstack_MachineProviderConfigSpec(in *MachineProviderConfigSpec, out *openstack.MachineProviderConfigSpec, s conversion.Scope) error

Convert_v1alpha1_MachineProviderConfigSpec_To_openstack_MachineProviderConfigSpec is an autogenerated conversion function.

func Convert_v1alpha1_MachineProviderConfig_To_openstack_MachineProviderConfig

func Convert_v1alpha1_MachineProviderConfig_To_openstack_MachineProviderConfig(in *MachineProviderConfig, out *openstack.MachineProviderConfig, s conversion.Scope) error

Convert_v1alpha1_MachineProviderConfig_To_openstack_MachineProviderConfig is an autogenerated conversion function.

func Convert_v1alpha1_OpenStackNetwork_To_openstack_OpenStackNetwork

func Convert_v1alpha1_OpenStackNetwork_To_openstack_OpenStackNetwork(in *OpenStackNetwork, out *openstack.OpenStackNetwork, s conversion.Scope) error

Convert_v1alpha1_OpenStackNetwork_To_openstack_OpenStackNetwork is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

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 {
	// +optional
	metav1.TypeMeta `json:",inline"`

	// +optional
	Spec MachineProviderConfigSpec `json:"spec,omitempty"`
}

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 `json:"imageID"`
	// ImageName is the name of the image used the machine. If ImageID is specified, it takes priority over ImageName.
	ImageName string `json:"imageName"`
	// Region is the region the machine should belong to.
	Region string `json:"region"`
	// AvailabilityZone is the availability zone the machine belongs.
	AvailabilityZone string `json:"availabilityZone"`
	// FlavorName is the flavor of the machine.
	FlavorName string `json:"flavorName"`
	// KeyName is the name of the key pair used for SSH access.
	KeyName string `json:"keyName"`
	// SecurityGroups is a list of security groups the instance should belong to.
	SecurityGroups []string `json:"securityGroups"`
	// 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 `json:"tags,omitempty"`
	// NetworkID is the ID of the network the instance should belong to.
	NetworkID string `json:"networkID"`
	// SubnetID is the ID of the subnet the instance should belong to.
	// Deprecated - use `SubnetIDs` instead.
	// +optional
	SubnetID *string `json:"subnetID,omitempty"`
	// SubnetIDs is a list of IDs of the subnets the instance should belong to.
	// +optional
	SubnetIDs []string `json:"subnetIDs,omitempty"`
	// PodNetworkCidr is the CIDR range for the pods assigned to this instance.
	// Deprecated: use PodNetworkCIDRs instead
	// +optional
	PodNetworkCidr string `json:"podNetworkCidr"`
	// PodNetworkCIDRs is the CIDR ranges for the pods assigned to this instance.
	// +optional
	PodNetworkCIDRs []string `json:"podNetworkCIDRs"`
	// The size of the root disk used for the instance.
	RootDiskSize int `json:"rootDiskSize,omitempty"` // in GB
	// The type of the root disk used for the instance.
	// +optional
	RootDiskType *string `json:"rootDiskType,omitempty"`
	// UseConfigDrive enables the use of configuration drives for the instance.
	UseConfigDrive *bool `json:"useConfigDrive,omitempty"`
	// ServerGroupID is the ID of the server group this instance should belong to.
	// +optional
	ServerGroupID *string `json:"serverGroupID,omitempty"`
	// 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 `json:"networks,omitempty"`
}

MachineProviderConfigSpec contains provider specific configuration for creating and managing machines.

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 `json:"id,omitempty"` // takes priority before name
	// Name is the name of a network the instance should belong to. If Id is specified, it takes priority over Name.
	Name string `json:"name,omitempty"`
	// PodNetwork specifies whether this network is part of the pod network.
	PodNetwork bool `json:"podNetwork,omitempty"`
}

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.

Jump to

Keyboard shortcuts

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