#73 we need to authenticate..
This commit is contained in:
@@ -105,7 +105,7 @@ class ClusterRegistryDiscoverer:
|
|||||||
for row in response.json()['items']:
|
for row in response.json()['items']:
|
||||||
# only consider "ready" clusters
|
# only consider "ready" clusters
|
||||||
if row.get('lifecycle_status', 'ready') == 'ready':
|
if row.get('lifecycle_status', 'ready') == 'ready':
|
||||||
clusters.append(Cluster(row['id'], row['api_server_url']))
|
clusters.append(Cluster(row['id'], row['api_server_url'], auth=OAuthTokenAuth('read-only')))
|
||||||
self._clusters = clusters
|
self._clusters = clusters
|
||||||
self._last_cache_refresh = time.time()
|
self._last_cache_refresh = time.time()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user