Documentation ¶
Overview ¶
Package v1beta2 contains API Schema definitions for the apps v1beta2 API group +kubebuilder:object:generate=true +groupName=apps.cks.cvlab
Index ¶
- Variables
- type ApplicationType
- type MLAppSpec
- type MachineLearning
- func (in *MachineLearning) DeepCopy() *MachineLearning
- func (in *MachineLearning) DeepCopyInto(out *MachineLearning)
- func (in *MachineLearning) DeepCopyObject() runtime.Object
- func (r *MachineLearning) SetupWebhookWithManager(signalHandler context.Context, mgr ctrl.Manager) error
- func (r *MachineLearning) ValidateCreate() error
- func (r *MachineLearning) ValidateDelete() error
- func (r *MachineLearning) ValidateUpdate(old runtime.Object) error
- type MachineLearningApps
- type MachineLearningList
- type MachineLearningSpec
- type MachineLearningStatus
- type MachineSpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "apps.cks.cvlab", 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 ApplicationType ¶
type ApplicationType string
const ( CodeServer ApplicationType = "codeserver" JupyterLab ApplicationType = "jupyterlab" )
func (ApplicationType) String ¶
func (t ApplicationType) String() string
type MLAppSpec ¶
type MLAppSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=jupyterlab;codeserver Type ApplicationType `json:"type"` // +kubebuilder:validation:Required Machine MachineSpec `json:"machine"` // +kubebuilder:validation:Required AppImage string `json:"appImage"` // +optional ImagePullSecrets []string `json:"imagePullSecrets,omitempty"` }
MLAppSpec is detail spec of apps for machine learning
func (*MLAppSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MLAppSpec.
func (*MLAppSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineLearning ¶
type MachineLearning struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineLearningSpec `json:"spec,omitempty"` Status MachineLearningStatus `json:"status,omitempty"` }
MachineLearning is the Schema for the machinelearnings API
func (*MachineLearning) DeepCopy ¶
func (in *MachineLearning) DeepCopy() *MachineLearning
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineLearning.
func (*MachineLearning) DeepCopyInto ¶
func (in *MachineLearning) DeepCopyInto(out *MachineLearning)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineLearning) DeepCopyObject ¶
func (in *MachineLearning) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MachineLearning) SetupWebhookWithManager ¶
func (*MachineLearning) ValidateCreate ¶
func (r *MachineLearning) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MachineLearning) ValidateDelete ¶
func (r *MachineLearning) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MachineLearning) ValidateUpdate ¶
func (r *MachineLearning) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MachineLearningApps ¶
type MachineLearningApps struct { // +kubebuilder:validation:Required AppName string `json:"name"` // +kubebuilder:validation:Required Namespace string `json:"namespace"` // +kubebuilder:validation:Required MLAppSpec MLAppSpec `json:"spec"` }
MachineLearningApps is apps for machine learning
func (*MachineLearningApps) DeepCopy ¶
func (in *MachineLearningApps) DeepCopy() *MachineLearningApps
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineLearningApps.
func (*MachineLearningApps) DeepCopyInto ¶
func (in *MachineLearningApps) DeepCopyInto(out *MachineLearningApps)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineLearningList ¶
type MachineLearningList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MachineLearning `json:"items"` }
MachineLearningList contains a list of MachineLearning
func (*MachineLearningList) DeepCopy ¶
func (in *MachineLearningList) DeepCopy() *MachineLearningList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineLearningList.
func (*MachineLearningList) DeepCopyInto ¶
func (in *MachineLearningList) DeepCopyInto(out *MachineLearningList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineLearningList) DeepCopyObject ¶
func (in *MachineLearningList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineLearningSpec ¶
type MachineLearningSpec struct { // +kubebuilder:validation:Required MachineLearningApps []MachineLearningApps `json:"apps"` }
MachineLearningSpec defines the desired state of MachineLearning
func (*MachineLearningSpec) DeepCopy ¶
func (in *MachineLearningSpec) DeepCopy() *MachineLearningSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineLearningSpec.
func (*MachineLearningSpec) DeepCopyInto ¶
func (in *MachineLearningSpec) DeepCopyInto(out *MachineLearningSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineLearningStatus ¶
MachineLearningStatus defines the observed state of MachineLearning
func (*MachineLearningStatus) DeepCopy ¶
func (in *MachineLearningStatus) DeepCopy() *MachineLearningStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineLearningStatus.
func (*MachineLearningStatus) DeepCopyInto ¶
func (in *MachineLearningStatus) DeepCopyInto(out *MachineLearningStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineSpec ¶
type MachineSpec struct { // +kubebuilder:validation:Required Type string `json:"type"` // +kubebuilder:validation:Required Group string `json:"group"` }
func (*MachineSpec) DeepCopy ¶
func (in *MachineSpec) DeepCopy() *MachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
func (*MachineSpec) DeepCopyInto ¶
func (in *MachineSpec) DeepCopyInto(out *MachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.