k3s/pkg/controller/podautoscaler
Solly Ross d6fe1e8764 HPA Controller: Use Custom Metrics API
This commit switches over the HPA controller to use the custom metrics
API.  It also converts the HPA controller to use the generated client
in k8s.io/metrics for the resource metrics API.

In order to enable support, you must enable
`--horizontal-pod-autoscaler-use-rest-clients` on the
controller-manager, which will switch the HPA controller's MetricsClient
implementation over to use the standard rest clients for both custom
metrics and resource metrics.  This requires that at the least resource
metrics API is registered with kube-aggregator, and that the controller
manager is pointed at kube-aggregator.  For this to work, Heapster
must be serving the new-style API server (`--api-server=true`).
2017-03-01 10:21:50 -05:00
..
metrics HPA Controller: Use Custom Metrics API 2017-03-01 10:21:50 -05:00
BUILD HPA Controller: Use Custom Metrics API 2017-03-01 10:21:50 -05:00
OWNERS Update OWNERS based on PR comments 2016-11-02 16:28:23 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
horizontal.go HPA: Don't mutate the shared informer cache 2017-02-21 11:57:08 -05:00
horizontal_test.go HPA Controller: Use Custom Metrics API 2017-03-01 10:21:50 -05:00
legacy_horizontal_test.go HPA Controller: Use Custom Metrics API 2017-03-01 10:21:50 -05:00
legacy_replica_calculator_test.go HPA Controller: Use Custom Metrics API 2017-03-01 10:21:50 -05:00
replica_calculator.go Convert HPA controller to use autoscaling/v2alpha1 2017-02-16 15:03:14 -05:00
replica_calculator_test.go HPA Controller: Use Custom Metrics API 2017-03-01 10:21:50 -05:00