Experimental client for horizontal pod autoscaler.
Implementation of experimental client for horizontal pod autoscaler. Placeholder implementation for controller for horizontal pod autoscaler.
This commit is contained in:
@@ -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 {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user