Use Kubernetes API instead of API group

This commit is contained in:
Murat Kabilov
2017-05-12 11:41:36 +02:00
parent ec3f24c3ee
commit fd449342e5
6 changed files with 46 additions and 53 deletions
+3
View File
@@ -50,6 +50,9 @@ func ControllerConfig() *controller.Config {
}
restClient, err := k8sutil.KubernetesRestClient(restConfig)
if err != nil {
log.Fatalf("Can't create rest client: %s", err)
}
return &controller.Config{
KubeClient: client,