From ce6e96f1bb34c373b1af55710827f8a284cdd9cb Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 6 Jan 2025 09:43:34 +0100 Subject: [PATCH] remove spec for workload --- .../api/v1alpha1/workload_types.go | 6 ------ .../config/crd/bases/cozystack.io_workloads.yaml | 6 +----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/system/cozystack-workload-controller/api/v1alpha1/workload_types.go b/packages/system/cozystack-workload-controller/api/v1alpha1/workload_types.go index 503fc48e..41bd9eda 100644 --- a/packages/system/cozystack-workload-controller/api/v1alpha1/workload_types.go +++ b/packages/system/cozystack-workload-controller/api/v1alpha1/workload_types.go @@ -21,11 +21,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -// WorkloadSpec defines the desired state of Workload -type WorkloadSpec struct { - // Placeholder for future spec fields -} - // WorkloadStatus defines the observed state of Workload type WorkloadStatus struct { // Kind represents the type of workload (redis, postgres, etc.) @@ -58,7 +53,6 @@ type Workload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec WorkloadSpec `json:"spec,omitempty"` Status WorkloadStatus `json:"status,omitempty"` } diff --git a/packages/system/cozystack-workload-controller/config/crd/bases/cozystack.io_workloads.yaml b/packages/system/cozystack-workload-controller/config/crd/bases/cozystack.io_workloads.yaml index 247f6fe3..d09d4902 100644 --- a/packages/system/cozystack-workload-controller/config/crd/bases/cozystack.io_workloads.yaml +++ b/packages/system/cozystack-workload-controller/config/crd/bases/cozystack.io_workloads.yaml @@ -27,8 +27,7 @@ spec: - jsonPath: .status.resources.memory name: Memory type: string - - format: upper - jsonPath: .status.operational + - jsonPath: .status.operational name: Operational type: boolean name: v1alpha1 @@ -53,9 +52,6 @@ spec: type: string metadata: type: object - spec: - description: WorkloadSpec defines the desired state of Workload - type: object status: description: WorkloadStatus defines the observed state of Workload properties: