Skip to content

Commit

Permalink
Remove storage autoscaler from Sentinel spec (#991)
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha arnob@appscode.com
  • Loading branch information
ArnobKumarSaha committed Oct 10, 2022
1 parent 2dae1fa commit 197a256
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 80 deletions.
27 changes: 1 addition & 26 deletions apis/autoscaling/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions apis/autoscaling/v1alpha1/redis_sentinel_types.go
Expand Up @@ -66,17 +66,12 @@ type RedisSentinelAutoscalerSpec struct {
OpsRequestOptions *RedisSentinelOpsRequestOptions `json:"opsRequestOptions,omitempty"`

Compute *RedisSentinelComputeAutoscalerSpec `json:"compute,omitempty"`
Storage *RedisSentinelStorageAutoscalerSpec `json:"storage,omitempty"`
}

type RedisSentinelComputeAutoscalerSpec struct {
Sentinel *ComputeAutoscalerSpec `json:"sentinel,omitempty"`
}

type RedisSentinelStorageAutoscalerSpec struct {
Sentinel *StorageAutoscalerSpec `json:"sentinel,omitempty"`
}

type RedisSentinelOpsRequestOptions struct {
// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
Timeout *metav1.Duration `json:"timeout,omitempty"`
Expand Down
4 changes: 0 additions & 4 deletions apis/autoscaling/v1alpha1/redis_sentinel_webhook.go
Expand Up @@ -50,10 +50,6 @@ func (in *RedisSentinelAutoscaler) Default() {
func (in *RedisSentinelAutoscaler) setDefaults() {
in.setOpsReqOptsDefaults()

if in.Spec.Storage != nil {
setDefaultStorageValues(in.Spec.Storage.Sentinel)
}

if in.Spec.Compute != nil {
setDefaultComputeValues(in.Spec.Compute.Sentinel)
}
Expand Down
26 changes: 0 additions & 26 deletions apis/autoscaling/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions crds/autoscaling.kubedb.com_redissentinelautoscalers.yaml
Expand Up @@ -96,25 +96,6 @@ spec:
timeout:
type: string
type: object
storage:
properties:
sentinel:
properties:
expansionMode:
enum:
- Offline
- Online
type: string
scalingThreshold:
format: int32
type: integer
trigger:
type: string
usageThreshold:
format: int32
type: integer
type: object
type: object
required:
- databaseRef
type: object
Expand Down

0 comments on commit 197a256

Please sign in to comment.