fed: Refactor e2e retrieval of cluster config

This commit is contained in:
Maru Newby
2017-04-17 22:47:02 -07:00
parent 4372b437ba
commit 7fb9d9950a
4 changed files with 36 additions and 49 deletions

View File

@@ -228,11 +228,11 @@ func (f *Framework) GetUnderlyingFederatedContexts() []E2EContext {
}
func (f *Framework) GetRegisteredClusters() ClusterSlice {
return getRegisteredClusters(f)
return registeredClustersFromConfig(f)
}
func (f *Framework) GetClusterClients() []kubeclientset.Interface {
clusters := getRegisteredClusters(f)
clusters := f.GetRegisteredClusters()
var clusterClients []kubeclientset.Interface
for _, c := range clusters {
clusterClients = append(clusterClients, c.Clientset)