Skip to content

Commit

Permalink
Change scaler name to openstack-swift
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Felipe Dominguite <[email protected]>
  • Loading branch information
pdominguite committed Jan 6, 2021
1 parent e36ef29 commit 4416698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scaling/scale_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ func buildScaler(triggerType string, config *scalers.ScalerConfig) (scalers.Scal
return scalers.NewMetricsAPIScaler(config)
case "mysql":
return scalers.NewMySQLScaler(config)
case "openstack-swift":
return scalers.NewOpenstackSwiftScaler(config)
case "postgresql":
return scalers.NewPostgreSQLScaler(config)
case "prometheus":
Expand All @@ -492,8 +494,6 @@ func buildScaler(triggerType string, config *scalers.ScalerConfig) (scalers.Scal
return scalers.NewRedisStreamsScaler(false, config)
case "stan":
return scalers.NewStanScaler(config)
case "swift":
return scalers.NewSwiftScaler(config)
default:
return nil, fmt.Errorf("no scaler found for type: %s", triggerType)
}
Expand Down

0 comments on commit 4416698

Please sign in to comment.