v1alpha1

package
v0.0.0-...-a9d428c Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the gpue v1alpha1 API group +kubebuilder:object:generate=true +groupName=amd.io

Index

Constants

View Source
const (
	AMDPCIVendorID = "1002"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "amd.io", 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 DeploymentStatus

type DeploymentStatus struct {
	// number of nodes that are targeted by the DeviceConfig selector
	NodesMatchingSelectorNumber int32 `json:"nodesMatchingSelectorNumber,omitempty"`
	// number of the pods that should be deployed for daemonset
	DesiredNumber int32 `json:"desiredNumber,omitempty"`
	// number of the actually deployed and running pods
	AvailableNumber int32 `json:"availableNumber,omitempty"`
}

DaemonSetStatus contains the status for a daemonset deployed during reconciliation loop

func (*DeploymentStatus) DeepCopy

func (in *DeploymentStatus) DeepCopy() *DeploymentStatus

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

func (*DeploymentStatus) DeepCopyInto

func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus)

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

type DeviceConfig

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

	Spec   DeviceConfigSpec   `json:"spec,omitempty"`
	Status DeviceConfigStatus `json:"status,omitempty"`
}

DeviceConfig describes how to enable AMD GPU device +operator-sdk:csv:customresourcedefinitions:displayName="DeviceConfig"

func (*DeviceConfig) DeepCopy

func (in *DeviceConfig) DeepCopy() *DeviceConfig

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

func (*DeviceConfig) DeepCopyInto

func (in *DeviceConfig) DeepCopyInto(out *DeviceConfig)

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

func (*DeviceConfig) DeepCopyObject

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

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

type DeviceConfigList

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

DeviceConfigList contains a list of DeviceConfigs

func (*DeviceConfigList) DeepCopy

func (in *DeviceConfigList) DeepCopy() *DeviceConfigList

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

func (*DeviceConfigList) DeepCopyInto

func (in *DeviceConfigList) DeepCopyInto(out *DeviceConfigList)

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

func (*DeviceConfigList) DeepCopyObject

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

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

type DeviceConfigSpec

type DeviceConfigSpec struct {
	// if the in-tree driver should be used instead of OOT drivers
	UseInTreeDrivers bool `json:"useInTreeDrivers,omitempty"`

	// defines image that includes drivers and firmware blobs
	// +optional
	DriversImage string `json:"driversImage,omitempty"`

	// version of the drivers source code, can be used as part of image of dockerfile source image
	// +optional
	DriversVersion string `json:"driversVersion,omitempty"`

	// device plugin image
	// +optional
	DevicePluginImage string `json:"devicePluginImage,omitempty"`

	// pull secrets used for pull/setting images used by operator
	// +optional
	ImageRepoSecret *v1.LocalObjectReference `json:"imageRepoSecret,omitempty"`

	// Selector describes on which nodes the GPU Operator should enable the GPU device.
	// +optional
	Selector map[string]string `json:"selector,omitempty"`
}

DeviceConfigSpec describes how the AMD GPU operator should enable AMD GPU device for customer's use.

func (*DeviceConfigSpec) DeepCopy

func (in *DeviceConfigSpec) DeepCopy() *DeviceConfigSpec

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

func (*DeviceConfigSpec) DeepCopyInto

func (in *DeviceConfigSpec) DeepCopyInto(out *DeviceConfigSpec)

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

type DeviceConfigStatus

type DeviceConfigStatus struct {
	// DevicePlugin contains the status of the Device Plugin deployment
	DevicePlugin DeploymentStatus `json:"devicePlugin,omitempty"`
	// Driver contains the status of the Drivers deployment
	Drivers DeploymentStatus `json:"driver"`
}

ModuleStatus defines the observed state of Module.

func (*DeviceConfigStatus) DeepCopy

func (in *DeviceConfigStatus) DeepCopy() *DeviceConfigStatus

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

func (*DeviceConfigStatus) DeepCopyInto

func (in *DeviceConfigStatus) DeepCopyInto(out *DeviceConfigStatus)

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