• 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
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genslateyaml Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
gke-certificates-controller Loading commit data...
hyperkube Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-discovery Loading commit data...
kube-proxy Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
libs/go2idl Loading commit data...
linkcheck Loading commit data...
mungedocs Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...