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

Commit 0479671

Browse files
committed
mock cluster without master nodes
1 parent 4045355 commit 0479671

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kube_ops_view/mock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def query_mock_cluster(cluster):
8585
if i == 8 and int(time.time() / 13) % 2 == 0:
8686
continue
8787
labels = {}
88-
if i < 2:
88+
# only the first two clusters have master nodes
89+
if i < 2 and index < 2:
8990
if index == 0:
9091
labels['kubernetes.io/role'] = 'master'
9192
elif index == 1:

0 commit comments

Comments
 (0)