From 9236a43a4d3c105b6509827ae74039e286b7b779 Mon Sep 17 00:00:00 2001 From: Yves Peter Date: Wed, 30 Nov 2016 19:25:22 +0100 Subject: [PATCH] kubernetes: moved doc of client to the interface --- provider/k8s/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provider/k8s/client.go b/provider/k8s/client.go index 90a3e18b0..14420b74f 100644 --- a/provider/k8s/client.go +++ b/provider/k8s/client.go @@ -18,6 +18,8 @@ import ( const resyncPeriod = time.Minute * 5 // Client is a client for the Kubernetes master. +// WatchAll starts the watch of the Kubernetes ressources and updates the stores. +// The stores can then be accessed via the Get* functions. type Client interface { GetIngresses(namespaces Namespaces) []*v1beta1.Ingress GetService(namespace, name string) (*v1.Service, bool, error) @@ -37,9 +39,7 @@ type clientImpl struct { clientset *kubernetes.Clientset } -// NewInClusterClient returns a new Kubernetes client. -// WatchAll starts the watch of the Kubernetes ressources and updates the stores. -// The stores can be accessed via the Get* functions. +// NewInClusterClient returns a new Kubernetes client that expect to run inside the cluster func NewInClusterClient() (Client, error) { config, err := rest.InClusterConfig() if err != nil {