v1

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: nexusapi.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr converts int32 type to int32 pointer type Method from sample-controller

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func NewResourceReadyCondition

func NewResourceReadyCondition(transitionTime metav1.Time, status metav1.ConditionStatus, message string) *metav1.Condition

NewResourceReadyCondition creates a new condition indicating an overall Mla synchronisation success or failure

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type MachineLearningAlgorithm

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

	Spec   MachineLearningAlgorithmSpec   `json:"spec"`
	Status MachineLearningAlgorithmStatus `json:"status"`
}

MachineLearningAlgorithm is a specification for a MachineLearningAlgorithm resource

func (*MachineLearningAlgorithm) DeepCopy

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

func (*MachineLearningAlgorithm) DeepCopyInto

func (in *MachineLearningAlgorithm) DeepCopyInto(out *MachineLearningAlgorithm)

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

func (*MachineLearningAlgorithm) DeepCopyObject

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

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

func (*MachineLearningAlgorithm) GetConfigMapNames

func (mla *MachineLearningAlgorithm) GetConfigMapNames() []string

GetConfigMapNames retrieves a list of unique config names for this MLA

func (*MachineLearningAlgorithm) GetSecretNames

func (mla *MachineLearningAlgorithm) GetSecretNames() []string

GetSecretNames retrieves a list of unique secret names for this MLA

type MachineLearningAlgorithmList

type MachineLearningAlgorithmList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []MachineLearningAlgorithm `json:"items"`
}

MachineLearningAlgorithmList is a list of MachineLearningAlgorithm resources

func (*MachineLearningAlgorithmList) DeepCopy

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

func (*MachineLearningAlgorithmList) DeepCopyInto

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

func (*MachineLearningAlgorithmList) DeepCopyObject

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

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

type MachineLearningAlgorithmSpec

type MachineLearningAlgorithmSpec struct {
	ImageRegistry        string                 `json:"imageRegistry"`
	ImageRepository      string                 `json:"imageRepository"`
	ImageTag             string                 `json:"imageTag"`
	DeadlineSeconds      *int32                 `json:"deadlineSeconds,omitempty"`
	MaximumRetries       *int32                 `json:"maximumRetries,omitempty"`
	Env                  []corev1.EnvVar        `json:"env,omitempty"`
	EnvFrom              []corev1.EnvFromSource `json:"envFrom,omitempty"`
	CpuLimit             string                 `json:"cpuLimit"`
	MemoryLimit          string                 `json:"memoryLimit"`
	WorkgroupHost        string                 `json:"workgroupHost"`
	Workgroup            string                 `json:"workgroup"`
	AdditionalWorkgroups map[string]string      `json:"additionalWorkgroups,omitempty"`
	MonitoringParameters []string               `json:"monitoringParameters,omitempty"`
	CustomResources      map[string]string      `json:"customResources,omitempty"`
	SpeculativeAttempts  *int32                 `json:"speculativeAttempts,omitempty"`
	TransientExitCodes   []int32                `json:"transientExitCodes,omitempty"`
	FatalExitCodes       []int32                `json:"fatalExitCodes,omitempty"`
	Command              string                 `json:"command"`
	Args                 []string               `json:"args,omitempty"`
	MountDatadogSocket   bool                   `json:"mountDatadogSocket,omitempty"`
}

MachineLearningAlgorithmSpec is the spec for a MachineLearningAlgorithm resource

func (*MachineLearningAlgorithmSpec) DeepCopy

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

func (*MachineLearningAlgorithmSpec) DeepCopyInto

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

type MachineLearningAlgorithmStatus

type MachineLearningAlgorithmStatus struct {
	SyncedSecrets        []string           `json:"syncedSecrets,omitempty"`
	SyncedConfigurations []string           `json:"syncedConfigurations,omitempty"`
	SyncedToClusters     []string           `json:"syncedToClusters,omitempty"`
	Conditions           []metav1.Condition `json:"conditions,omitempty"`
}

MachineLearningAlgorithmStatus is the status for a MachineLearningAlgorithm resource

func (*MachineLearningAlgorithmStatus) DeepCopy

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

func (*MachineLearningAlgorithmStatus) DeepCopyInto

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