Kubernetes Registry (#1064)

* add teh k8s registry

* add k8s reg config/cmd

* go mod update
This commit is contained in:
Asim Aslam
2019-12-27 20:08:46 +00:00
committed by GitHub
parent 22aa7d14b3
commit 61cde4a9f4
14 changed files with 950 additions and 236 deletions

View File

@@ -182,9 +182,9 @@ func NewLog(opts ...log.Option) log.Log {
}
if len(os.Getenv("KUBERNETES_SERVICE_HOST")) > 0 {
klog.client = client.NewClientInCluster()
klog.client = client.NewClusterClient()
} else {
klog.client = client.NewLocalDevClient()
klog.client = client.NewLocalClient()
}
return klog
}