File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func Run(kubeconfigPath string,
4848 Kind : metricsResourceKind ,
4949 Group : metricsResourceGroup ,
5050 },
51- MetricClientOptions : scalertypes.MetricClientOptions {
51+ MetricsClientOptions : scalertypes.MetricsClientOptions {
5252 Kind : scalertypes .KindCustomMetrics ,
5353 },
5454 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import (
3333func NewMetricsClient (logger logger.Logger ,
3434 restConfig * rest.Config ,
3535 autoScalerConf * scalertypes.AutoScalerOptions ) (scalertypes.MetricsClient , error ) {
36- switch autoScalerConf .MetricClientOptions .Kind {
36+ switch autoScalerConf .MetricsClientOptions .Kind {
3737 case scalertypes .KindCustomMetrics :
3838 customMetricsClient , err := NewCustomMetricsClientFromConfig (restConfig )
3939 if err != nil {
@@ -45,6 +45,6 @@ func NewMetricsClient(logger logger.Logger,
4545 autoScalerConf .Namespace ,
4646 autoScalerConf .GroupKind ), nil
4747 default :
48- return nil , fmt .Errorf ("unsupported metrics client kind: %s" , autoScalerConf .MetricClientOptions .Kind )
48+ return nil , fmt .Errorf ("unsupported metrics client kind: %s" , autoScalerConf .MetricsClientOptions .Kind )
4949 }
5050}
Original file line number Diff line number Diff line change @@ -39,17 +39,17 @@ const (
3939 KindCustomMetrics = "customMetrics"
4040)
4141
42- type MetricClientOptions struct {
42+ type MetricsClientOptions struct {
4343 Kind Kind
4444 URL string
4545 Template string
4646}
4747
4848type AutoScalerOptions struct {
49- Namespace string
50- ScaleInterval Duration
51- GroupKind schema.GroupKind
52- MetricClientOptions MetricClientOptions
49+ Namespace string
50+ ScaleInterval Duration
51+ GroupKind schema.GroupKind
52+ MetricsClientOptions MetricsClientOptions
5353}
5454
5555type ResourceScalerConfig struct {
You can’t perform that action at this time.
0 commit comments