• Kubernetes Submit Queue's avatar
    Merge pull request #41824 from DirectXMan12/feature/hpa-v2-use-cm-api · 4f7d150b
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    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`).
    
    Before this merges, this will need kubernetes/metrics#2 to merge, and a godeps update to pull that in.
    It's also semi-dependent on kubernetes/heapster#1537, but that is not required in order for this to merge.
    
    **Release note**:
    ```release-note
    Allow the Horizontal Pod Autoscaler controller to talk to the metrics API and custom metrics API as standard APIs.
    ```
    4f7d150b
Name
Last commit
Last update
..
bootstrap Loading commit data...
certificates Loading commit data...
cloud Loading commit data...
cronjob Loading commit data...
daemon Loading commit data...
deployment Loading commit data...
disruption Loading commit data...
endpoint Loading commit data...
garbagecollector Loading commit data...
job Loading commit data...
namespace Loading commit data...
node Loading commit data...
podautoscaler Loading commit data...
podgc Loading commit data...
replicaset Loading commit data...
replication Loading commit data...
resourcequota Loading commit data...
route Loading commit data...
service Loading commit data...
serviceaccount Loading commit data...
statefulset Loading commit data...
ttl Loading commit data...
volume Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
client_builder.go Loading commit data...
controller_ref_manager.go Loading commit data...
controller_utils.go Loading commit data...
controller_utils_test.go Loading commit data...
doc.go Loading commit data...
lookup_cache.go Loading commit data...