v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cro v1alpha1 API group +kubebuilder:object:generate=true +groupName=cro.hpsys.ibm.ie.com

Index

Constants

View Source
const (
	StateEmpty           = ""
	StateOnline          = "Online"
	StatePending         = "Pending"
	StateFinalizingSetup = "FinalizingSetup"
	StateCleanup         = "Cleanup"
	StateFailed          = "Failed"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cro.hpsys.ibm.ie.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ComposabilityRequest

type ComposabilityRequest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ComposabilityRequestSpec   `json:"spec,omitempty"`
	Status ComposabilityRequestStatus `json:"status,omitempty"`
}

ComposabilityRequest is the Schema for the composabilityrequests API

func (*ComposabilityRequest) DeepCopy

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

func (*ComposabilityRequest) DeepCopyInto

func (in *ComposabilityRequest) DeepCopyInto(out *ComposabilityRequest)

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

func (*ComposabilityRequest) DeepCopyObject

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

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

type ComposabilityRequestList

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

ComposabilityRequestList contains a list of ComposabilityRequest

func (*ComposabilityRequestList) DeepCopy

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

func (*ComposabilityRequestList) DeepCopyInto

func (in *ComposabilityRequestList) DeepCopyInto(out *ComposabilityRequestList)

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

func (*ComposabilityRequestList) DeepCopyObject

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

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

type ComposabilityRequestSpec

type ComposabilityRequestSpec struct {
	Resource ScalarResourceDetails `json:"resource"`
}

ComposabilityRequestSpec defines the desired state of ComposabilityRequest

func (*ComposabilityRequestSpec) DeepCopy

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

func (*ComposabilityRequestSpec) DeepCopyInto

func (in *ComposabilityRequestSpec) DeepCopyInto(out *ComposabilityRequestSpec)

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

type ComposabilityRequestStatus

type ComposabilityRequestStatus struct {
	State          string                          `json:"state"`
	Error          string                          `json:"error,omitempty"`
	Resources      map[string]ScalarResourceStatus `json:"resources,omitempty"`
	ScalarResource ScalarResourceDetails           `json:"scalarResource,omitempty"`
}

ComposabilityRequestStatus defines the observed state of ComposabilityRequest

func (*ComposabilityRequestStatus) DeepCopy

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

func (*ComposabilityRequestStatus) DeepCopyInto

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

type ComposableResource

type ComposableResource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ComposableResourceSpec   `json:"spec,omitempty"`
	Status ComposableResourceStatus `json:"status,omitempty"`
}

ComposableResource is the Schema for the composableresources API

func (*ComposableResource) DeepCopy

func (in *ComposableResource) DeepCopy() *ComposableResource

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

func (*ComposableResource) DeepCopyInto

func (in *ComposableResource) DeepCopyInto(out *ComposableResource)

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

func (*ComposableResource) DeepCopyObject

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

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

type ComposableResourceList

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

ComposableResourceList contains a list of ComposableResource

func (*ComposableResourceList) DeepCopy

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

func (*ComposableResourceList) DeepCopyInto

func (in *ComposableResourceList) DeepCopyInto(out *ComposableResourceList)

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

func (*ComposableResourceList) DeepCopyObject

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

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

type ComposableResourceSpec

type ComposableResourceSpec struct {
	// +kubebuilder:validation:Enum="gpu";"cxlmemory"
	Type        string `json:"type"`
	Model       string `json:"model"`
	TargetNode  string `json:"target_node"`
	ForceDetach bool   `json:"force_detach,omitempty"`
}

ComposableResourceSpec defines the desired state of ComposableResource

func (*ComposableResourceSpec) DeepCopy

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

func (*ComposableResourceSpec) DeepCopyInto

func (in *ComposableResourceSpec) DeepCopyInto(out *ComposableResourceSpec)

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

type ComposableResourceStatus

type ComposableResourceStatus struct {
	State       string `json:"state"`
	Error       string `json:"error,omitempty"`
	DeviceID    string `json:"device_id,omitempty"`
	CDIDeviceID string `json:"cdi_device_id,omitempty"`
}

ComposableResourceStatus defines the observed state of ComposableResource

func (*ComposableResourceStatus) DeepCopy

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

func (*ComposableResourceStatus) DeepCopyInto

func (in *ComposableResourceStatus) DeepCopyInto(out *ComposableResourceStatus)

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

type NodeSpec

type NodeSpec struct {
	// +kubebuilder:validation:Minimum=0
	MilliCPU int64 `json:"milli_cpu,omitempty"`
	// +kubebuilder:validation:Minimum=0
	Memory int64 `json:"memory,omitempty"`
	// +kubebuilder:validation:Minimum=0
	EphemeralStorage int64 `json:"ephemeral_storage,omitempty"`
	// +kubebuilder:validation:Minimum=0
	AllowedPodNumber int64 `json:"allowed_pod_number,omitempty"`
}

func (*NodeSpec) DeepCopy

func (in *NodeSpec) DeepCopy() *NodeSpec

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

func (*NodeSpec) DeepCopyInto

func (in *NodeSpec) DeepCopyInto(out *NodeSpec)

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

type ScalarResourceDetails

type ScalarResourceDetails struct {
	// +kubebuilder:validation:Enum="gpu";"cxlmemory"
	Type string `json:"type"`
	// +kubebuilder:validation:MinLength=1
	Model string `json:"model"`
	// +kubebuilder:validation:Minimum=0
	Size        int64 `json:"size"`
	ForceDetach bool  `json:"force_detach,omitempty"`
	// +kubebuilder:validation:Enum="samenode";"differentnode"
	// +kubebuilder:default=samenode
	AllocationPolicy string    `json:"allocation_policy,omitempty"`
	TargetNode       string    `json:"target_node,omitempty"`
	OtherSpec        *NodeSpec `json:"other_spec,omitempty"`
}

func (*ScalarResourceDetails) DeepCopy

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

func (*ScalarResourceDetails) DeepCopyInto

func (in *ScalarResourceDetails) DeepCopyInto(out *ScalarResourceDetails)

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

type ScalarResourceStatus

type ScalarResourceStatus struct {
	State       string `json:"state"`
	DeviceID    string `json:"device_id,omitempty"`
	CDIDeviceID string `json:"cdi_device_id,omitempty"`
	NodeName    string `json:"node_name,omitempty"`
	Error       string `json:"error,omitempty"`
}

func (*ScalarResourceStatus) DeepCopy

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

func (*ScalarResourceStatus) DeepCopyInto

func (in *ScalarResourceStatus) DeepCopyInto(out *ScalarResourceStatus)

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