Skip to content

Commit

Permalink
ScaledObject Status clean up (#466)
Browse files Browse the repository at this point in the history
removing fields that we don't update.
  • Loading branch information
zroubalik authored and Aarthisk committed Nov 22, 2019
1 parent c444a92 commit a2acb0d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
9 changes: 0 additions & 9 deletions deploy/crds/keda.k8s.io_scaledobjects_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4511,22 +4511,13 @@ 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
type: array
lastActiveTime:
format: date-time
type: string
required:
- currentReplicas
- desiredReplicas
type: object
required:
- spec
Expand Down
2 changes: 0 additions & 2 deletions pkg/apis/keda/v1alpha1/scaledobject_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
13 changes: 0 additions & 13 deletions pkg/apis/keda/v1alpha1/zz_generated.openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -363,7 +351,6 @@ func schema_pkg_apis_keda_v1alpha1_ScaledObjectStatus(ref common.ReferenceCallba
},
},
},
Required: []string{"currentReplicas", "desiredReplicas"},
},
},
Dependencies: []string{
Expand Down

0 comments on commit a2acb0d

Please sign in to comment.