Skip to content

Commit

Permalink
adjust scaler order
Browse files Browse the repository at this point in the history
Signed-off-by: 高强 <[email protected]>
  • Loading branch information
高强 committed Jan 1, 2021
1 parent 66c6b16 commit 143197b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
### New
- Can use Pod Identity with Azure Event Hub scaler ([#994](https://github.com/kedacore/keda/issues/994))
- Introducing InfluxDB scaler ([#1239](https://github.com/kedacore/keda/issues/1239))
- Introducing Mongo scaler ([#1465](https://github.com/kedacore/keda/issues/1465))
- Introducing MongoDB scaler ([#1465](https://github.com/kedacore/keda/issues/1465))

### Improvements
- Support add ScaledJob's label to its job ([#1311](https://github.com/kedacore/keda/issues/1311))
Expand Down
4 changes: 2 additions & 2 deletions pkg/scaling/scale_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ func buildScaler(triggerType string, config *scalers.ScalerConfig) (scalers.Scal
return scalers.NewCPUMemoryScaler(corev1.ResourceMemory, config)
case "metrics-api":
return scalers.NewMetricsAPIScaler(config)
case "mongo":
return scalers.NewMongoScaler(config)
case "mysql":
return scalers.NewMySQLScaler(config)
case "postgresql":
Expand All @@ -464,8 +466,6 @@ func buildScaler(triggerType string, config *scalers.ScalerConfig) (scalers.Scal
return scalers.NewRedisStreamsScaler(config)
case "stan":
return scalers.NewStanScaler(config)
case "mongo":
return scalers.NewMongoScaler(config)
default:
return nil, fmt.Errorf("no scaler found for type: %s", triggerType)
}
Expand Down

0 comments on commit 143197b

Please sign in to comment.