Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
mock cluster without master nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Mar 23, 2019
1 parent 4045355 commit 0479671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kube_ops_view/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def query_mock_cluster(cluster):
if i == 8 and int(time.time() / 13) % 2 == 0:
continue
labels = {}
if i < 2:
# only the first two clusters have master nodes
if i < 2 and index < 2:
if index == 0:
labels['kubernetes.io/role'] = 'master'
elif index == 1:
Expand Down

0 comments on commit 0479671

Please sign in to comment.