v1alpha1

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package,register +groupName=region.unikorn-cloud.org

Index

Constants

View Source
const (
	// GroupName is the Kubernetes API group our resources belong to.
	GroupName = "region.unikorn-cloud.org"
	// GroupVersion is the version of our custom resources.
	GroupVersion = "v1alpha1"
	// Group is group/version of our resources.
	Group = GroupName + "/" + GroupVersion
)

Variables

View Source
var (
	// SchemeGroupVersion defines the GV of our resources.
	//nolint:gochecknoglobals
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}

	// SchemeBuilder creates a mapping between GVK and type.
	//nolint:gochecknoglobals
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds our GVK to resource mappings to an existing scheme.
	//nolint:gochecknoglobals
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource maps a resource type to a group resource.

Types

type CPUSpec added in v0.1.17

type CPUSpec struct {
	// Family is a free-form string that can communicate the CPU family to clients
	// e.g. "Xeon Platinum 8160T (Skylake)", and allows users to make scheduling
	// decisions based on CPU architecture and performance etc.
	Family *string `json:"family,omitempty"`
}

func (*CPUSpec) DeepCopy added in v0.1.17

func (in *CPUSpec) DeepCopy() *CPUSpec

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

func (*CPUSpec) DeepCopyInto added in v0.1.17

func (in *CPUSpec) DeepCopyInto(out *CPUSpec)

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

type GPUSpec added in v0.1.17

type GPUSpec struct {
	// Vendor is the GPU vendor, used for coarse grained flavor and image
	// selection.
	Vendor GPUVendor `json:"vendor"`
	// Model is a free-form model name that corresponds to the supported models
	// property included on images, and must be an exact match e.g. H100.
	Model string `json:"model"`
	// Memory is the amount of memory each logical GPU has access to.
	Memory *resource.Quantity `json:"memory"`
	// Count is the number of logical GPUs in the flavor.
	Count int `json:"count"`
}

func (*GPUSpec) DeepCopy added in v0.1.17

func (in *GPUSpec) DeepCopy() *GPUSpec

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

func (*GPUSpec) DeepCopyInto added in v0.1.17

func (in *GPUSpec) DeepCopyInto(out *GPUSpec)

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

type GPUVendor added in v0.1.17

type GPUVendor string

+kubebuilder:validation:Enum=NVIDIA;AMD

const (
	NVIDIA GPUVendor = "NVIDIA"
	AMD    GPUVendor = "AMD"
)

type Identity

type Identity struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              IdentitySpec   `json:"spec"`
	Status            IdentityStatus `json:"status"`
}

Identity defines an on-demand cloud identity. The region controller must create any resources necessary to provide dynamic provisioning of clusters e.g. compute, storage and networking. This resource is used for persistence of information by the controller and not for manual lifecycle management. Any credentials should not be stored unless absolutely necessary, and should be passed to a client on initial identity creation only. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope=Namespaced,categories=unikorn +kubebuilder:printcolumn:name="provider",type="string",JSONPath=".spec.provider" +kubebuilder:printcolumn:name="status",type="string",JSONPath=".status.conditions[?(@.type==\"Available\")].reason" +kubebuilder:printcolumn:name="age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Identity) DeepCopy

func (in *Identity) DeepCopy() *Identity

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

func (*Identity) DeepCopyInto

func (in *Identity) DeepCopyInto(out *Identity)

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

func (*Identity) DeepCopyObject

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

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

type IdentityList

type IdentityList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Identity `json:"items"`
}

IdentityList is a typed list of identities. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IdentityList) DeepCopy

func (in *IdentityList) DeepCopy() *IdentityList

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

func (*IdentityList) DeepCopyInto

func (in *IdentityList) DeepCopyInto(out *IdentityList)

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

func (*IdentityList) DeepCopyObject

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

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

type IdentitySpec

type IdentitySpec struct {
	// Tags are an abitrary list of key/value pairs that a client
	// may populate to store metadata for the resource.
	Tags TagList `json:"tags,omitempty"`
	// Provider defines the provider type.
	Provider Provider `json:"provider"`
	// OpenStack is populated when the provider type is set to "openstack".
	OpenStack *IdentitySpecOpenStack `json:"openstack,omitempty"`
}

IdentitySpec stores any state necessary to manage identity.

func (*IdentitySpec) DeepCopy

func (in *IdentitySpec) DeepCopy() *IdentitySpec

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

func (*IdentitySpec) DeepCopyInto

func (in *IdentitySpec) DeepCopyInto(out *IdentitySpec)

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

type IdentitySpecOpenStack

type IdentitySpecOpenStack struct {
	// UserID is the ID of the user created for the identity.
	UserID string `json:"userID"`
	// ProjectID is the ID of the project created for the identity.
	ProjectID string `json:"projectID"`
}

func (*IdentitySpecOpenStack) DeepCopy

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

func (*IdentitySpecOpenStack) DeepCopyInto

func (in *IdentitySpecOpenStack) DeepCopyInto(out *IdentitySpecOpenStack)

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

type IdentityStatus

type IdentityStatus struct {
}

func (*IdentityStatus) DeepCopy

func (in *IdentityStatus) DeepCopy() *IdentityStatus

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

func (*IdentityStatus) DeepCopyInto

func (in *IdentityStatus) DeepCopyInto(out *IdentityStatus)

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

type NamespacedObject

type NamespacedObject struct {
	// Namespace is the namespace in which the object resides.
	Namespace string `json:"namespace"`
	// Name is the name of the object.
	Name string `json:"name"`
}

func (*NamespacedObject) DeepCopy

func (in *NamespacedObject) DeepCopy() *NamespacedObject

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

func (*NamespacedObject) DeepCopyInto

func (in *NamespacedObject) DeepCopyInto(out *NamespacedObject)

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

type OpenstackFlavorExclude added in v0.1.17

type OpenstackFlavorExclude struct {
	// ID flavor ID is the immutable Openstack identifier for the flavor.
	ID string `json:"id"`
}

func (*OpenstackFlavorExclude) DeepCopy added in v0.1.17

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

func (*OpenstackFlavorExclude) DeepCopyInto added in v0.1.17

func (in *OpenstackFlavorExclude) DeepCopyInto(out *OpenstackFlavorExclude)

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

type OpenstackFlavorInclude added in v0.1.17

type OpenstackFlavorInclude struct {
	// ID is the immutable Openstack identifier for the flavor.
	// While most flavor metadata (CPUs/Memory) should be immutable, the name is
	// not, and may change due to sales and marketing people.
	ID string `json:"id"`
	// Baremetal indicates that this is a baremetal flavor, as opposed to a
	// virtualized one in case this affects image selection or even how instances
	// are provisioned.
	Baremetal bool `json:"baremetal,omitempty"`
	// CPU defines additional CPU metadata.
	CPU *CPUSpec `json:"cpu,omitempty"`
	// GPU defines additional GPU metadata.  When provided it will enable selection
	// of images based on GPU vendor and model.
	GPU *GPUSpec `json:"gpu,omitempty"`
}

func (*OpenstackFlavorInclude) DeepCopy added in v0.1.17

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

func (*OpenstackFlavorInclude) DeepCopyInto added in v0.1.17

func (in *OpenstackFlavorInclude) DeepCopyInto(out *OpenstackFlavorInclude)

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

type OpenstackFlavorSelectionPolicy added in v0.1.17

type OpenstackFlavorSelectionPolicy string

+kubebuilder:validation:Enum=All;None

const (
	OpenstackFlavorSelectionPolicySelectAll  OpenstackFlavorSelectionPolicy = "All"
	OpenstackFlavorSelectionPolicySelectNone OpenstackFlavorSelectionPolicy = "None"
)

type OpenstackFlavorsSpec added in v0.1.17

type OpenstackFlavorsSpec struct {
	// SelectionPolicy defines the default set of flavors to export.  "All" exports
	// all flavors, the "include" property defines additional metadata to
	// merge with matching flavors and the "exclude" inhibits export.  "None" is a
	// more secure policy that only exports those flavors defined in the "include"
	// property, the "exclude" property is ignored as it's redundant.
	SelectionPolicy OpenstackFlavorSelectionPolicy `json:"selectionPolicy"`
	// Include allows or augments flavors that can be exported by the region
	// service as defined by the "selectionPolicy" property.  This explcitly
	// allows a flavor to be used, and or allows metadata to be mapped to the
	// flavor e.g. CPU/GPU information that isn't supported by OpenStack.
	Include []OpenstackFlavorInclude `json:"include,omitempty"`
	// Exclude inhibits the export of flavors from the region service.
	Exclude []OpenstackFlavorExclude `json:"exclude,omitempty"`
}

func (*OpenstackFlavorsSpec) DeepCopy added in v0.1.17

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

func (*OpenstackFlavorsSpec) DeepCopyInto added in v0.1.17

func (in *OpenstackFlavorsSpec) DeepCopyInto(out *OpenstackFlavorsSpec)

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

type OpenstackProviderNetworkSpec added in v0.1.18

type OpenstackProviderNetworkSpec struct {
	// ID is the network ID.
	ID string `json:"id"`
	// VlanID is the ID if the VLAN for IPAM.
	VlanID int `json:"vlanID"`
}

func (*OpenstackProviderNetworkSpec) DeepCopy added in v0.1.18

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

func (*OpenstackProviderNetworkSpec) DeepCopyInto added in v0.1.18

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

type PhysicalNetwork added in v0.1.18

type PhysicalNetwork struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PhysicalNetworkSpec   `json:"spec"`
	Status            PhysicalNetworkStatus `json:"status"`
}

PhysicalNetwork defines a physical network beloning to an identity. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope=Namespaced,categories=unikorn +kubebuilder:printcolumn:name="status",type="string",JSONPath=".status.conditions[?(@.type==\"Available\")].reason" +kubebuilder:printcolumn:name="age",type="date",JSONPath=".metadata.creationTimestamp"

func (*PhysicalNetwork) DeepCopy added in v0.1.18

func (in *PhysicalNetwork) DeepCopy() *PhysicalNetwork

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

func (*PhysicalNetwork) DeepCopyInto added in v0.1.18

func (in *PhysicalNetwork) DeepCopyInto(out *PhysicalNetwork)

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

func (*PhysicalNetwork) DeepCopyObject added in v0.1.18

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

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

type PhysicalNetworkList added in v0.1.18

type PhysicalNetworkList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PhysicalNetwork `json:"items"`
}

PhysicalNetworkList s a typed list of physical networks. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PhysicalNetworkList) DeepCopy added in v0.1.18

func (in *PhysicalNetworkList) DeepCopy() *PhysicalNetworkList

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

func (*PhysicalNetworkList) DeepCopyInto added in v0.1.18

func (in *PhysicalNetworkList) DeepCopyInto(out *PhysicalNetworkList)

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

func (*PhysicalNetworkList) DeepCopyObject added in v0.1.18

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

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

type PhysicalNetworkSpec added in v0.1.18

type PhysicalNetworkSpec struct {
	// Tags are an abitrary list of key/value pairs that a client
	// may populate to store metadata for the resource.
	Tags TagList `json:"tags,omitempty"`
	// ProviderNetwork is the provider network for port allocation of
	// virtual machines.
	ProviderNetwork *OpenstackProviderNetworkSpec `json:"providerNetwork,omitempty"`
}

func (*PhysicalNetworkSpec) DeepCopy added in v0.1.18

func (in *PhysicalNetworkSpec) DeepCopy() *PhysicalNetworkSpec

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

func (*PhysicalNetworkSpec) DeepCopyInto added in v0.1.18

func (in *PhysicalNetworkSpec) DeepCopyInto(out *PhysicalNetworkSpec)

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

type PhysicalNetworkStatus added in v0.1.18

type PhysicalNetworkStatus struct {
}

func (*PhysicalNetworkStatus) DeepCopy added in v0.1.18

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

func (*PhysicalNetworkStatus) DeepCopyInto added in v0.1.18

func (in *PhysicalNetworkStatus) DeepCopyInto(out *PhysicalNetworkStatus)

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

type Provider

type Provider string

Provider is used to communicate the cloud type. +kubebuilder:validation:Enum=openstack

const (
	ProviderOpenstack Provider = "openstack"
)

type Region

type Region struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RegionSpec   `json:"spec"`
	Status            RegionStatus `json:"status,omitempty"`
}

Region defines a geographical region where clusters can be provisioned. A region defines the endpoints that can be used to derive information about the provider for that region. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope=Namespaced,categories=unikorn +kubebuilder:subresource:status +kubebuilder:printcolumn:name="display name",type="string",JSONPath=".metadata.labels['unikorn-cloud\\.org/name']" +kubebuilder:printcolumn:name="provider",type="string",JSONPath=".spec.provider" +kubebuilder:printcolumn:name="status",type="string",JSONPath=".status.conditions[?(@.type==\"Available\")].reason" +kubebuilder:printcolumn:name="age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Region) DeepCopy

func (in *Region) DeepCopy() *Region

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

func (*Region) DeepCopyInto

func (in *Region) DeepCopyInto(out *Region)

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

func (*Region) DeepCopyObject

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

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

type RegionList

type RegionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Region `json:"items"`
}

RegionList is a typed list of regions. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*RegionList) DeepCopy

func (in *RegionList) DeepCopy() *RegionList

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

func (*RegionList) DeepCopyInto

func (in *RegionList) DeepCopyInto(out *RegionList)

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

func (*RegionList) DeepCopyObject

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

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

type RegionOpenstackComputeSpec

type RegionOpenstackComputeSpec struct {
	// ServerGroupPolicy defines the anti-affinity policy to use for
	// scheduling cluster nodes.  Defaults to "soft-anti-affinity".
	ServerGroupPolicy *string `json:"serverGroupPolicy,omitempty"`
	// Flavors defines how flavors are filtered and reported to
	// clients.  If not defined, then all flavors are exported.
	Flavors *OpenstackFlavorsSpec `json:"flavors,omitempty"`
}

func (*RegionOpenstackComputeSpec) DeepCopy

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

func (*RegionOpenstackComputeSpec) DeepCopyInto

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

type RegionOpenstackIdentitySpec

type RegionOpenstackIdentitySpec struct {
	// ClusterRoles are the roles required to be assigned to an application
	// credential in order to provision, scale and deprovision a cluster, along
	// with any required for CNI/CSI functionality.
	ClusterRoles []string `json:"clusterRoles,omitempty"`
}

func (*RegionOpenstackIdentitySpec) DeepCopy

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

func (*RegionOpenstackIdentitySpec) DeepCopyInto

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

type RegionOpenstackImageSpec

type RegionOpenstackImageSpec struct {
	// PropertiesInclude defines the set of properties that must all exist
	// for an image to be advertised by the provider.
	PropertiesInclude []string `json:"propertiesInclude,omitempty"`
	// SigningKey defines a PEM encoded public ECDSA signing key used to verify
	// the image is trusted.  If specified, an image must contain the "digest"
	// property, the value of which must be a base64 encoded ECDSA signature of
	// the SHA256 hash of the image ID.
	SigningKey []byte `json:"signingKey,omitempty"`
}

func (*RegionOpenstackImageSpec) DeepCopy

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

func (*RegionOpenstackImageSpec) DeepCopyInto

func (in *RegionOpenstackImageSpec) DeepCopyInto(out *RegionOpenstackImageSpec)

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

type RegionOpenstackNetworkSpec added in v0.1.17

type RegionOpenstackNetworkSpec struct {
	// PhysicalNetwork is the neutron provider specific network name used
	// to provision provider networks e.g. VLANs for bare metal clusters.
	PhysicalNetwork *string `json:"physicalNetwork,omitempty"`
	// VLAN is the VLAN configuration.  If not specified and a VLAN provider
	// network is requested then the ID will be allocated between 1-6094
	// inclusive.
	VLAN *VLANSpec `json:"vlan,omitempty"`
}

func (*RegionOpenstackNetworkSpec) DeepCopy added in v0.1.17

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

func (*RegionOpenstackNetworkSpec) DeepCopyInto added in v0.1.17

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

type RegionOpenstackSpec

type RegionOpenstackSpec struct {
	// Endpoint is the Keystone URL e.g. https://foo.bar:5000.
	Endpoint string `json:"endpoint"`
	// ServiceAccountSecretName points to the secret containing credentials
	// required to perform the tasks the provider needs to perform.
	ServiceAccountSecret *NamespacedObject `json:"serviceAccountSecret"`
	// Identity is configuration for the identity service.
	Identity *RegionOpenstackIdentitySpec `json:"identity,omitempty"`
	// Compute is configuration for the compute service.
	Compute *RegionOpenstackComputeSpec `json:"compute,omitempty"`
	// Image is configuration for the image service.
	Image *RegionOpenstackImageSpec `json:"image,omitempty"`
	// Network is configuration for the network service.
	Network *RegionOpenstackNetworkSpec `json:"network,omitempty"`
}

func (*RegionOpenstackSpec) DeepCopy

func (in *RegionOpenstackSpec) DeepCopy() *RegionOpenstackSpec

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

func (*RegionOpenstackSpec) DeepCopyInto

func (in *RegionOpenstackSpec) DeepCopyInto(out *RegionOpenstackSpec)

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

type RegionSpec

type RegionSpec struct {
	// Type defines the provider type.
	Provider Provider `json:"provider"`
	// Openstack is provider specific configuration for the region.
	Openstack *RegionOpenstackSpec `json:"openstack,omitempty"`
}

RegionSpec defines metadata about the region.

func (*RegionSpec) DeepCopy

func (in *RegionSpec) DeepCopy() *RegionSpec

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

func (*RegionSpec) DeepCopyInto

func (in *RegionSpec) DeepCopyInto(out *RegionSpec)

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

type RegionStatus

type RegionStatus struct {
	// Current service state of a region.
	Conditions []unikornv1core.Condition `json:"conditions,omitempty"`
}

RegionStatus defines the status of the region.

func (*RegionStatus) DeepCopy

func (in *RegionStatus) DeepCopy() *RegionStatus

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

func (*RegionStatus) DeepCopyInto

func (in *RegionStatus) DeepCopyInto(out *RegionStatus)

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

type Tag added in v0.1.18

type Tag struct {
	// Name of the tag.
	Name string `json:"name"`
	// Value of the tag.
	Value string `json:"value"`
}

Tag is an arbirary key/value.

func (*Tag) DeepCopy added in v0.1.18

func (in *Tag) DeepCopy() *Tag

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

func (*Tag) DeepCopyInto added in v0.1.18

func (in *Tag) DeepCopyInto(out *Tag)

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

type TagList added in v0.1.18

type TagList []Tag

TagList is an ordered list of tags.

func (TagList) DeepCopy added in v0.1.18

func (in TagList) DeepCopy() TagList

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

func (TagList) DeepCopyInto added in v0.1.18

func (in TagList) DeepCopyInto(out *TagList)

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

type VLANSegment added in v0.1.18

type VLANSegment struct {
	// StartID is VLAN ID at the start of the range.
	// +kubebuilder:validation:Minimum=1
	StartID int `json:"startId"`
	// EndID is the VLAN ID at the end of the range.
	// +kubebuilder:validation:Maximum=4094
	EndID int `json:"endId"`
}

func (*VLANSegment) DeepCopy added in v0.1.18

func (in *VLANSegment) DeepCopy() *VLANSegment

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

func (*VLANSegment) DeepCopyInto added in v0.1.18

func (in *VLANSegment) DeepCopyInto(out *VLANSegment)

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

type VLANSpec added in v0.1.18

type VLANSpec struct {
	// Segements allow blocks of VLAN IDs to be allocated from.  In a multi
	// tenant system, it's possible and perhaps necessary, that this controller
	// be limited to certain ranges to avoid split brain scenarios when another
	// user or system is allocating VLAN IDs for itself.
	// +kubebuilder:validation:MinItems=1
	Segments []VLANSegment `json:"segments,omitempty"`
}

func (*VLANSpec) DeepCopy added in v0.1.18

func (in *VLANSpec) DeepCopy() *VLANSpec

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

func (*VLANSpec) DeepCopyInto added in v0.1.18

func (in *VLANSpec) DeepCopyInto(out *VLANSpec)

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