Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the trustyai.opendatahub.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=trustyai.opendatahub.io
Index ¶
- Variables
- type Condition
- type DataSpec
- type MetricsSpec
- type StorageSpec
- type TrustyAIService
- func (in *TrustyAIService) DeepCopy() *TrustyAIService
- func (in *TrustyAIService) DeepCopyInto(out *TrustyAIService)
- func (in *TrustyAIService) DeepCopyObject() runtime.Object
- func (t *TrustyAIService) IsMigration() bool
- func (t *TrustyAIService) SetStatus(condType, reason, message string, status corev1.ConditionStatus)
- type TrustyAIServiceList
- type TrustyAIServiceSpec
- type TrustyAIServiceStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "trustyai.opendatahub.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 Condition ¶
type Condition struct { Type string `json:"type"` Status corev1.ConditionStatus `json:"status"` LastTransitionTime metav1.Time `json:"lastTransitionTime"` Reason string `json:"reason"` Message string `json:"message"` }
Condition represents possible conditions of a TrustyAIServiceStatus
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DataSpec ¶
type DataSpec struct { Filename string `json:"filename,omitempty"` Format string `json:"format,omitempty"` }
func (*DataSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataSpec.
func (*DataSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricsSpec ¶
type MetricsSpec struct { Schedule string `json:"schedule"` BatchSize *int `json:"batchSize,omitempty"` }
func (*MetricsSpec) DeepCopy ¶
func (in *MetricsSpec) DeepCopy() *MetricsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsSpec.
func (*MetricsSpec) DeepCopyInto ¶
func (in *MetricsSpec) DeepCopyInto(out *MetricsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageSpec ¶
type StorageSpec struct { // Format only supports "PVC" or "DATABASE" values // +kubebuilder:validation:Enum=PVC;DATABASE Format string `json:"format"` Folder string `json:"folder,omitempty"` Size string `json:"size,omitempty"` DatabaseConfigurations string `json:"databaseConfigurations,omitempty"` }
func (*StorageSpec) DeepCopy ¶
func (in *StorageSpec) DeepCopy() *StorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageSpec.
func (*StorageSpec) DeepCopyInto ¶
func (in *StorageSpec) DeepCopyInto(out *StorageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageSpec) IsDatabaseConfigurationsSet ¶
func (s *StorageSpec) IsDatabaseConfigurationsSet() bool
IsDatabaseConfigurationsSet returns true if the DatabaseConfigurations field is set.
func (*StorageSpec) IsStorageDatabase ¶
func (s *StorageSpec) IsStorageDatabase() bool
IsStorageDatabase returns true if the storage is set to database.
func (*StorageSpec) IsStoragePVC ¶
func (s *StorageSpec) IsStoragePVC() bool
IsStoragePVC returns true if the storage is set to PVC.
type TrustyAIService ¶
type TrustyAIService struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TrustyAIServiceSpec `json:"spec,omitempty"` Status TrustyAIServiceStatus `json:"status,omitempty"` }
TrustyAIService is the Schema for the trustyaiservices API +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status
func (*TrustyAIService) DeepCopy ¶
func (in *TrustyAIService) DeepCopy() *TrustyAIService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrustyAIService.
func (*TrustyAIService) DeepCopyInto ¶
func (in *TrustyAIService) DeepCopyInto(out *TrustyAIService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TrustyAIService) DeepCopyObject ¶
func (in *TrustyAIService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TrustyAIService) IsMigration ¶
func (t *TrustyAIService) IsMigration() bool
IsMigration returns true if the migration fields are set.
func (*TrustyAIService) SetStatus ¶
func (t *TrustyAIService) SetStatus(condType, reason, message string, status corev1.ConditionStatus)
SetStatus sets the status of the TrustyAIService
type TrustyAIServiceList ¶
type TrustyAIServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TrustyAIService `json:"items"` }
TrustyAIServiceList contains a list of TrustyAIService
func (*TrustyAIServiceList) DeepCopy ¶
func (in *TrustyAIServiceList) DeepCopy() *TrustyAIServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrustyAIServiceList.
func (*TrustyAIServiceList) DeepCopyInto ¶
func (in *TrustyAIServiceList) DeepCopyInto(out *TrustyAIServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TrustyAIServiceList) DeepCopyObject ¶
func (in *TrustyAIServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TrustyAIServiceSpec ¶
type TrustyAIServiceSpec struct { // Number of replicas // +optional Replicas *int32 `json:"replicas"` Storage StorageSpec `json:"storage"` Data DataSpec `json:"data,omitempty"` Metrics MetricsSpec `json:"metrics"` }
TrustyAIServiceSpec defines the desired state of TrustyAIService
func (*TrustyAIServiceSpec) DeepCopy ¶
func (in *TrustyAIServiceSpec) DeepCopy() *TrustyAIServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrustyAIServiceSpec.
func (*TrustyAIServiceSpec) DeepCopyInto ¶
func (in *TrustyAIServiceSpec) DeepCopyInto(out *TrustyAIServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrustyAIServiceStatus ¶
type TrustyAIServiceStatus struct { // Define your status fields here Phase string `json:"phase"` Replicas int32 `json:"replicas"` Conditions []Condition `json:"conditions"` Ready corev1.ConditionStatus `json:"ready,omitempty"` }
TrustyAIServiceStatus defines the observed state of TrustyAIService
func (*TrustyAIServiceStatus) DeepCopy ¶
func (in *TrustyAIServiceStatus) DeepCopy() *TrustyAIServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrustyAIServiceStatus.
func (*TrustyAIServiceStatus) DeepCopyInto ¶
func (in *TrustyAIServiceStatus) DeepCopyInto(out *TrustyAIServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.