diff --git a/deploy/crds/keda.k8s.io_scaledobjects_crd.yaml b/deploy/crds/keda.k8s.io_scaledobjects_crd.yaml index ad809c19386..22c77e10ade 100644 --- a/deploy/crds/keda.k8s.io_scaledobjects_crd.yaml +++ b/deploy/crds/keda.k8s.io_scaledobjects_crd.yaml @@ -4511,12 +4511,6 @@ spec: status: description: ScaledObjectStatus is the status for a ScaledObject resource properties: - currentReplicas: - format: int32 - type: integer - desiredReplicas: - format: int32 - type: integer externalMetricNames: items: type: string @@ -4524,9 +4518,6 @@ spec: lastActiveTime: format: date-time type: string - required: - - currentReplicas - - desiredReplicas type: object required: - spec diff --git a/pkg/apis/keda/v1alpha1/scaledobject_types.go b/pkg/apis/keda/v1alpha1/scaledobject_types.go index 877f550966b..f7cef539251 100644 --- a/pkg/apis/keda/v1alpha1/scaledobject_types.go +++ b/pkg/apis/keda/v1alpha1/scaledobject_types.go @@ -80,8 +80,6 @@ type ScaleTriggers struct { type ScaledObjectStatus struct { // +optional LastActiveTime *metav1.Time `json:"lastActiveTime,omitempty"` - CurrentReplicas int32 `json:"currentReplicas"` - DesiredReplicas int32 `json:"desiredReplicas"` // +optional // +listType ExternalMetricNames []string `json:"externalMetricNames,omitempty"` diff --git a/pkg/apis/keda/v1alpha1/zz_generated.openapi.go b/pkg/apis/keda/v1alpha1/zz_generated.openapi.go index ea56e668566..22a7accf03d 100644 --- a/pkg/apis/keda/v1alpha1/zz_generated.openapi.go +++ b/pkg/apis/keda/v1alpha1/zz_generated.openapi.go @@ -332,18 +332,6 @@ func schema_pkg_apis_keda_v1alpha1_ScaledObjectStatus(ref common.ReferenceCallba Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "currentReplicas": { - SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", - }, - }, - "desiredReplicas": { - SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", - }, - }, "externalMetricNames": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -363,7 +351,6 @@ func schema_pkg_apis_keda_v1alpha1_ScaledObjectStatus(ref common.ReferenceCallba }, }, }, - Required: []string{"currentReplicas", "desiredReplicas"}, }, }, Dependencies: []string{