diff --git a/apis/components/component.go b/apis/components/component.go index 8bea674ca05..0555e208a95 100644 --- a/apis/components/component.go +++ b/apis/components/component.go @@ -3,6 +3,7 @@ package components import ( operatorv1 "github.com/openshift/api/operator/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // Component struct defines the basis for each OpenDataHub component configuration. @@ -54,3 +55,14 @@ type ManifestsConfig struct { // +operator-sdk:csv:customresourcedefinitions:type=spec,order=3 SourcePath string `json:"sourcePath,omitempty"` } + +// +kubebuilder:object:generate=true +type Status struct { + Phase string `json:"phase"` + Conditions []metav1.Condition `json:"conditions,omitempty"` + ObservedGeneration int64 `json:"observedGeneration,omitempty"` +} + +type WithStatus interface { + GetStatus() *Status +} diff --git a/apis/components/v1/codeflare_types.go b/apis/components/v1/codeflare_types.go index 0f79d552392..554074b19dc 100644 --- a/apis/components/v1/codeflare_types.go +++ b/apis/components/v1/codeflare_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type CodeFlareSpec struct { // CodeFlareStatus defines the observed state of CodeFlare type CodeFlareStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // CodeFlare is the Schema for the codeflares API type CodeFlare struct { @@ -51,7 +51,11 @@ type CodeFlare struct { Status CodeFlareStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *CodeFlare) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // CodeFlareList contains a list of CodeFlare type CodeFlareList struct { diff --git a/apis/components/v1/dashboard_types.go b/apis/components/v1/dashboard_types.go index 053ca272535..390cf3b5648 100644 --- a/apis/components/v1/dashboard_types.go +++ b/apis/components/v1/dashboard_types.go @@ -33,13 +33,12 @@ type DashboardSpec struct { // DashboardStatus defines the observed state of Dashboard type DashboardStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // Dashboard is the Schema for the dashboards API type Dashboard struct { @@ -50,7 +49,11 @@ type Dashboard struct { Status DashboardStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *Dashboard) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // DashboardList contains a list of Dashboard type DashboardList struct { diff --git a/apis/components/v1/datasciencepipelines_types.go b/apis/components/v1/datasciencepipelines_types.go index 3156f1f987f..35e413a79ee 100644 --- a/apis/components/v1/datasciencepipelines_types.go +++ b/apis/components/v1/datasciencepipelines_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type DataSciencePipelinesSpec struct { // DataSciencePipelinesStatus defines the observed state of DataSciencePipelines type DataSciencePipelinesStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // DataSciencePipelines is the Schema for the datasciencepipelines API type DataSciencePipelines struct { @@ -51,7 +51,11 @@ type DataSciencePipelines struct { Status DataSciencePipelinesStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *DataSciencePipelines) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // DataSciencePipelinesList contains a list of DataSciencePipelines type DataSciencePipelinesList struct { diff --git a/apis/components/v1/kserve_types.go b/apis/components/v1/kserve_types.go index bb5aa7f0266..1ca4112dfc4 100644 --- a/apis/components/v1/kserve_types.go +++ b/apis/components/v1/kserve_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type KserveSpec struct { // KserveStatus defines the observed state of Kserve type KserveStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // Kserve is the Schema for the kserves API type Kserve struct { @@ -51,7 +51,11 @@ type Kserve struct { Status KserveStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *Kserve) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // KserveList contains a list of Kserve type KserveList struct { diff --git a/apis/components/v1/kueue_types.go b/apis/components/v1/kueue_types.go index 62f0341c7c3..61850634f6c 100644 --- a/apis/components/v1/kueue_types.go +++ b/apis/components/v1/kueue_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type KueueSpec struct { // KueueStatus defines the observed state of Kueue type KueueStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // Kueue is the Schema for the kueues API type Kueue struct { @@ -51,7 +51,11 @@ type Kueue struct { Status KueueStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *Kueue) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // KueueList contains a list of Kueue type KueueList struct { diff --git a/apis/components/v1/modelmeshserving_types.go b/apis/components/v1/modelmeshserving_types.go index d72950fd4cb..94cdb6bee65 100644 --- a/apis/components/v1/modelmeshserving_types.go +++ b/apis/components/v1/modelmeshserving_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type ModelMeshServingSpec struct { // ModelMeshServingStatus defines the observed state of ModelMeshServing type ModelMeshServingStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // ModelMeshServing is the Schema for the modelmeshservings API type ModelMeshServing struct { @@ -51,7 +51,11 @@ type ModelMeshServing struct { Status ModelMeshServingStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *ModelMeshServing) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // ModelMeshServingList contains a list of ModelMeshServing type ModelMeshServingList struct { diff --git a/apis/components/v1/modelregistry_types.go b/apis/components/v1/modelregistry_types.go index 676bcc786de..e7563643cc4 100644 --- a/apis/components/v1/modelregistry_types.go +++ b/apis/components/v1/modelregistry_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type ModelRegistrySpec struct { // ModelRegistryStatus defines the observed state of ModelRegistry type ModelRegistryStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // ModelRegistry is the Schema for the modelregistries API type ModelRegistry struct { @@ -51,7 +51,11 @@ type ModelRegistry struct { Status ModelRegistryStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *ModelRegistry) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // ModelRegistryList contains a list of ModelRegistry type ModelRegistryList struct { diff --git a/apis/components/v1/ray_types.go b/apis/components/v1/ray_types.go index 74e78c3554e..012cba22cf1 100644 --- a/apis/components/v1/ray_types.go +++ b/apis/components/v1/ray_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type RaySpec struct { // RayStatus defines the observed state of Ray type RayStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // Ray is the Schema for the rays API type Ray struct { @@ -51,7 +51,11 @@ type Ray struct { Status RayStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *Ray) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // RayList contains a list of Ray type RayList struct { diff --git a/apis/components/v1/trainingoperator_types.go b/apis/components/v1/trainingoperator_types.go index 9a2dc7a2364..5e7fd6e7463 100644 --- a/apis/components/v1/trainingoperator_types.go +++ b/apis/components/v1/trainingoperator_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type TrainingOperatorSpec struct { // TrainingOperatorStatus defines the observed state of TrainingOperator type TrainingOperatorStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // TrainingOperator is the Schema for the trainingoperators API type TrainingOperator struct { @@ -51,7 +51,11 @@ type TrainingOperator struct { Status TrainingOperatorStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *TrainingOperator) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // TrainingOperatorList contains a list of TrainingOperator type TrainingOperatorList struct { diff --git a/apis/components/v1/trustyai_types.go b/apis/components/v1/trustyai_types.go index 07d04d2aaa0..873f35b3490 100644 --- a/apis/components/v1/trustyai_types.go +++ b/apis/components/v1/trustyai_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type TrustyAISpec struct { // TrustyAIStatus defines the observed state of TrustyAI type TrustyAIStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // TrustyAI is the Schema for the trustyais API type TrustyAI struct { @@ -51,7 +51,11 @@ type TrustyAI struct { Status TrustyAIStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *TrustyAI) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // TrustyAIList contains a list of TrustyAI type TrustyAIList struct { diff --git a/apis/components/v1/workbenches_types.go b/apis/components/v1/workbenches_types.go index 20195809e24..3b8856781c0 100644 --- a/apis/components/v1/workbenches_types.go +++ b/apis/components/v1/workbenches_types.go @@ -17,6 +17,7 @@ limitations under the License. package v1 import ( + "github.com/opendatahub-io/opendatahub-operator/v2/apis/components" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -34,13 +35,12 @@ type WorkbenchesSpec struct { // WorkbenchesStatus defines the observed state of Workbenches type WorkbenchesStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file + components.Status `json:",inline"` } -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -//+kubebuilder:resource:scope=Cluster +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster // Workbenches is the Schema for the workbenches API type Workbenches struct { @@ -51,7 +51,11 @@ type Workbenches struct { Status WorkbenchesStatus `json:"status,omitempty"` } -//+kubebuilder:object:root=true +func (c *Workbenches) GetStatus() *components.Status { + return &c.Status.Status +} + +// +kubebuilder:object:root=true // WorkbenchesList contains a list of Workbenches type WorkbenchesList struct { diff --git a/apis/components/v1/zz_generated.deepcopy.go b/apis/components/v1/zz_generated.deepcopy.go index d37e63ec550..c94e9e65d01 100644 --- a/apis/components/v1/zz_generated.deepcopy.go +++ b/apis/components/v1/zz_generated.deepcopy.go @@ -30,7 +30,7 @@ func (in *CodeFlare) DeepCopyInto(out *CodeFlare) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeFlare. @@ -101,6 +101,7 @@ func (in *CodeFlareSpec) DeepCopy() *CodeFlareSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CodeFlareStatus) DeepCopyInto(out *CodeFlareStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeFlareStatus. @@ -135,7 +136,7 @@ func (in *Dashboard) DeepCopyInto(out *Dashboard) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dashboard. @@ -207,6 +208,7 @@ func (in *DashboardSpec) DeepCopy() *DashboardSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DashboardStatus) DeepCopyInto(out *DashboardStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardStatus. @@ -225,7 +227,7 @@ func (in *DataSciencePipelines) DeepCopyInto(out *DataSciencePipelines) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataSciencePipelines. @@ -296,6 +298,7 @@ func (in *DataSciencePipelinesSpec) DeepCopy() *DataSciencePipelinesSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DataSciencePipelinesStatus) DeepCopyInto(out *DataSciencePipelinesStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataSciencePipelinesStatus. @@ -314,7 +317,7 @@ func (in *Kserve) DeepCopyInto(out *Kserve) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kserve. @@ -385,6 +388,7 @@ func (in *KserveSpec) DeepCopy() *KserveSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KserveStatus) DeepCopyInto(out *KserveStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KserveStatus. @@ -403,7 +407,7 @@ func (in *Kueue) DeepCopyInto(out *Kueue) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kueue. @@ -474,6 +478,7 @@ func (in *KueueSpec) DeepCopy() *KueueSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KueueStatus) DeepCopyInto(out *KueueStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KueueStatus. @@ -492,7 +497,7 @@ func (in *ModelMeshServing) DeepCopyInto(out *ModelMeshServing) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelMeshServing. @@ -563,6 +568,7 @@ func (in *ModelMeshServingSpec) DeepCopy() *ModelMeshServingSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ModelMeshServingStatus) DeepCopyInto(out *ModelMeshServingStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelMeshServingStatus. @@ -581,7 +587,7 @@ func (in *ModelRegistry) DeepCopyInto(out *ModelRegistry) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelRegistry. @@ -652,6 +658,7 @@ func (in *ModelRegistrySpec) DeepCopy() *ModelRegistrySpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ModelRegistryStatus) DeepCopyInto(out *ModelRegistryStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelRegistryStatus. @@ -670,7 +677,7 @@ func (in *Ray) DeepCopyInto(out *Ray) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ray. @@ -741,6 +748,7 @@ func (in *RaySpec) DeepCopy() *RaySpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RayStatus) DeepCopyInto(out *RayStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RayStatus. @@ -759,7 +767,7 @@ func (in *TrainingOperator) DeepCopyInto(out *TrainingOperator) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrainingOperator. @@ -830,6 +838,7 @@ func (in *TrainingOperatorSpec) DeepCopy() *TrainingOperatorSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TrainingOperatorStatus) DeepCopyInto(out *TrainingOperatorStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrainingOperatorStatus. @@ -848,7 +857,7 @@ func (in *TrustyAI) DeepCopyInto(out *TrustyAI) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrustyAI. @@ -919,6 +928,7 @@ func (in *TrustyAISpec) DeepCopy() *TrustyAISpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TrustyAIStatus) DeepCopyInto(out *TrustyAIStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrustyAIStatus. @@ -937,7 +947,7 @@ func (in *Workbenches) DeepCopyInto(out *Workbenches) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workbenches. @@ -1008,6 +1018,7 @@ func (in *WorkbenchesSpec) DeepCopy() *WorkbenchesSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkbenchesStatus) DeepCopyInto(out *WorkbenchesStatus) { *out = *in + in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkbenchesStatus. diff --git a/apis/components/zz_generated.deepcopy.go b/apis/components/zz_generated.deepcopy.go index 92a766ebc26..569c6049163 100644 --- a/apis/components/zz_generated.deepcopy.go +++ b/apis/components/zz_generated.deepcopy.go @@ -20,7 +20,9 @@ limitations under the License. package components -import () +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1" +) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Component) DeepCopyInto(out *Component) { @@ -61,3 +63,25 @@ func (in *DevFlags) DeepCopy() *DevFlags { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Status) DeepCopyInto(out *Status) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]v1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status. +func (in *Status) DeepCopy() *Status { + if in == nil { + return nil + } + out := new(Status) + in.DeepCopyInto(out) + return out +} diff --git a/config/crd/bases/components.opendatahub.io_codeflares.yaml b/config/crd/bases/components.opendatahub.io_codeflares.yaml index 4b0ddc8a343..c45d5fcbfaa 100644 --- a/config/crd/bases/components.opendatahub.io_codeflares.yaml +++ b/config/crd/bases/components.opendatahub.io_codeflares.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: CodeFlareStatus defines the observed state of CodeFlare + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_dashboards.yaml b/config/crd/bases/components.opendatahub.io_dashboards.yaml index 5956213531c..eea77880651 100644 --- a/config/crd/bases/components.opendatahub.io_dashboards.yaml +++ b/config/crd/bases/components.opendatahub.io_dashboards.yaml @@ -82,6 +82,70 @@ spec: type: object status: description: DashboardStatus defines the observed state of Dashboard + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_datasciencepipelines.yaml b/config/crd/bases/components.opendatahub.io_datasciencepipelines.yaml index f3fb5576818..fb4b6899735 100644 --- a/config/crd/bases/components.opendatahub.io_datasciencepipelines.yaml +++ b/config/crd/bases/components.opendatahub.io_datasciencepipelines.yaml @@ -48,6 +48,70 @@ spec: status: description: DataSciencePipelinesStatus defines the observed state of DataSciencePipelines + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_kserves.yaml b/config/crd/bases/components.opendatahub.io_kserves.yaml index 413fd04f62b..d69b9879bc0 100644 --- a/config/crd/bases/components.opendatahub.io_kserves.yaml +++ b/config/crd/bases/components.opendatahub.io_kserves.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: KserveStatus defines the observed state of Kserve + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_kueues.yaml b/config/crd/bases/components.opendatahub.io_kueues.yaml index 8642d6f0c44..1c979f917db 100644 --- a/config/crd/bases/components.opendatahub.io_kueues.yaml +++ b/config/crd/bases/components.opendatahub.io_kueues.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: KueueStatus defines the observed state of Kueue + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_modelmeshservings.yaml b/config/crd/bases/components.opendatahub.io_modelmeshservings.yaml index 70da2550ab6..f9fc51f2442 100644 --- a/config/crd/bases/components.opendatahub.io_modelmeshservings.yaml +++ b/config/crd/bases/components.opendatahub.io_modelmeshservings.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: ModelMeshServingStatus defines the observed state of ModelMeshServing + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_modelregistries.yaml b/config/crd/bases/components.opendatahub.io_modelregistries.yaml index 08e548165d7..ccf83ae4bd6 100644 --- a/config/crd/bases/components.opendatahub.io_modelregistries.yaml +++ b/config/crd/bases/components.opendatahub.io_modelregistries.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: ModelRegistryStatus defines the observed state of ModelRegistry + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_rays.yaml b/config/crd/bases/components.opendatahub.io_rays.yaml index 6ac1b609b81..9ef5113968c 100644 --- a/config/crd/bases/components.opendatahub.io_rays.yaml +++ b/config/crd/bases/components.opendatahub.io_rays.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: RayStatus defines the observed state of Ray + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_trainingoperators.yaml b/config/crd/bases/components.opendatahub.io_trainingoperators.yaml index 2909886aa6d..475ad90b607 100644 --- a/config/crd/bases/components.opendatahub.io_trainingoperators.yaml +++ b/config/crd/bases/components.opendatahub.io_trainingoperators.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: TrainingOperatorStatus defines the observed state of TrainingOperator + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_trustyais.yaml b/config/crd/bases/components.opendatahub.io_trustyais.yaml index efa4d210913..e02caf6ee6e 100644 --- a/config/crd/bases/components.opendatahub.io_trustyais.yaml +++ b/config/crd/bases/components.opendatahub.io_trustyais.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: TrustyAIStatus defines the observed state of TrustyAI + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true diff --git a/config/crd/bases/components.opendatahub.io_workbenches.yaml b/config/crd/bases/components.opendatahub.io_workbenches.yaml index 6fac70ceaa9..fbe5be0b249 100644 --- a/config/crd/bases/components.opendatahub.io_workbenches.yaml +++ b/config/crd/bases/components.opendatahub.io_workbenches.yaml @@ -46,6 +46,70 @@ spec: type: object status: description: WorkbenchesStatus defines the observed state of Workbenches + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + type: string + required: + - phase type: object type: object served: true