Merge pull request #12792 from jszczepkowski/hpa-controller2

Experimental client for horizontal pod autoscaler.
This commit is contained in:
Wojciech Tyczynski
2015-08-20 10:50:02 +02:00
7 changed files with 387 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ import (
"github.com/golang/glog"
"github.com/prometheus/client_golang/prometheus"
"github.com/spf13/pflag"
// TODO: Enable the code belowe when horizontal pod autoscaler controller is implemented.
// "k8s.io/kubernetes/pkg/controller/autoscaler"
)
// CMServer is the main context object for the controller manager.
@@ -264,5 +267,13 @@ func (s *CMServer) Run(_ []string) error {
serviceaccount.DefaultServiceAccountsControllerOptions(),
).Run()
// TODO: Enable the code belowe when horizontal pod autoscaler controller is implemented.
// expClient, err := client.NewExperimental(kubeconfig)
// if err != nil {
// glog.Fatalf("Invalid API configuration: %v", err)
// }
// horizontalPodAutoscalerController := autoscalercontroller.New(expClient)
// horizontalPodAutoscalerController.Run(s.NodeSyncPeriod)
select {}
}