Documentation ¶
Overview ¶
Package v1beta2 contains API Schema definitions for the workload v1beta2 API group +kubebuilder:object:generate=true +groupName=workload.codeflare.dev
Index ¶
Constants ¶
const ( WarmupGracePeriodDurationAnnotation = "workload.codeflare.dev.appwrapper/warmupGracePeriodDuration" FailureGracePeriodDurationAnnotation = "workload.codeflare.dev.appwrapper/failureGracePeriodDuration" ResetPauseDurationAnnotation = "workload.codeflare.dev.appwrapper/resetPauseDuration" RetryLimitAnnotation = "workload.codeflare.dev.appwrapper/retryLimit" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "workload.codeflare.dev", Version: "v1beta2"} // 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 AppWrapper ¶
type AppWrapper struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AppWrapperSpec `json:"spec,omitempty"` Status AppWrapperStatus `json:"status,omitempty"` }
AppWrapper is the Schema for the appwrappers API
func (*AppWrapper) DeepCopy ¶
func (in *AppWrapper) DeepCopy() *AppWrapper
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppWrapper.
func (*AppWrapper) DeepCopyInto ¶
func (in *AppWrapper) DeepCopyInto(out *AppWrapper)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppWrapper) DeepCopyObject ¶
func (in *AppWrapper) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppWrapperComponent ¶
type AppWrapperComponent struct { // PodSets contained in the component PodSets []AppWrapperPodSet `json:"podSets,omitempty"` // PodSetInfos assigned to the Component by Kueue PodSetInfos []AppWrapperPodSetInfo `json:"podSetInfos,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:EmbeddedResource // Template for the component Template runtime.RawExtension `json:"template"` }
AppWrapperComponent describes a wrapped resource
func (*AppWrapperComponent) DeepCopy ¶
func (in *AppWrapperComponent) DeepCopy() *AppWrapperComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppWrapperComponent.
func (*AppWrapperComponent) DeepCopyInto ¶
func (in *AppWrapperComponent) DeepCopyInto(out *AppWrapperComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppWrapperCondition ¶ added in v0.2.0
type AppWrapperCondition string
const ( QuotaReserved AppWrapperCondition = "QuotaReserved" ResourcesDeployed AppWrapperCondition = "ResourcesDeployed" PodsReady AppWrapperCondition = "PodsReady" Unhealthy AppWrapperCondition = "Unhealthy" )
type AppWrapperList ¶
type AppWrapperList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AppWrapper `json:"items"` }
AppWrapperList contains a list of appwrappers
func (*AppWrapperList) DeepCopy ¶
func (in *AppWrapperList) DeepCopy() *AppWrapperList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppWrapperList.
func (*AppWrapperList) DeepCopyInto ¶
func (in *AppWrapperList) DeepCopyInto(out *AppWrapperList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppWrapperList) DeepCopyObject ¶
func (in *AppWrapperList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppWrapperPhase ¶
type AppWrapperPhase string
AppWrapperPhase is the phase of the appwrapper
const ( AppWrapperEmpty AppWrapperPhase = "" AppWrapperSuspended AppWrapperPhase = "Suspended" AppWrapperResuming AppWrapperPhase = "Resuming" AppWrapperRunning AppWrapperPhase = "Running" AppWrapperResetting AppWrapperPhase = "Resetting" AppWrapperSuspending AppWrapperPhase = "Suspending" AppWrapperSucceeded AppWrapperPhase = "Succeeded" AppWrapperFailed AppWrapperPhase = "Failed" AppWrapperTerminating AppWrapperPhase = "Terminating" )
type AppWrapperPodSet ¶
type AppWrapperPodSet struct { // Replicas is the number of pods in the set Replicas *int32 `json:"replicas,omitempty"` // Path to the PodTemplateSpec Path string `json:"path"` }
AppWrapperPodSet describes an homogeneous set of pods
func (*AppWrapperPodSet) DeepCopy ¶
func (in *AppWrapperPodSet) DeepCopy() *AppWrapperPodSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppWrapperPodSet.
func (*AppWrapperPodSet) DeepCopyInto ¶
func (in *AppWrapperPodSet) DeepCopyInto(out *AppWrapperPodSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppWrapperPodSetInfo ¶ added in v0.5.0
type AppWrapperPodSetInfo struct { Annotations map[string]string `json:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*AppWrapperPodSetInfo) DeepCopy ¶ added in v0.5.0
func (in *AppWrapperPodSetInfo) DeepCopy() *AppWrapperPodSetInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppWrapperPodSetInfo.
func (*AppWrapperPodSetInfo) DeepCopyInto ¶ added in v0.5.0
func (in *AppWrapperPodSetInfo) DeepCopyInto(out *AppWrapperPodSetInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppWrapperSpec ¶
type AppWrapperSpec struct { // Components lists the components in the job Components []AppWrapperComponent `json:"components"` // Suspend suspends the job when set to true Suspend bool `json:"suspend,omitempty"` }
AppWrapperSpec defines the desired state of the appwrapper
func (*AppWrapperSpec) DeepCopy ¶
func (in *AppWrapperSpec) DeepCopy() *AppWrapperSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppWrapperSpec.
func (*AppWrapperSpec) DeepCopyInto ¶
func (in *AppWrapperSpec) DeepCopyInto(out *AppWrapperSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppWrapperStatus ¶
type AppWrapperStatus struct { // Phase of the AppWrapper object Phase AppWrapperPhase `json:"phase,omitempty"` // Retries counts the number of times the AppWrapper has entered the Resetting Phase Retries int32 `json:"resettingCount,omitempty"` // Conditions Conditions []metav1.Condition `json:"conditions,omitempty"` }
AppWrapperStatus defines the observed state of the appwrapper
func (*AppWrapperStatus) DeepCopy ¶
func (in *AppWrapperStatus) DeepCopy() *AppWrapperStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppWrapperStatus.
func (*AppWrapperStatus) DeepCopyInto ¶
func (in *AppWrapperStatus) DeepCopyInto(out *AppWrapperStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.