Skip to content

Commit 646c28e

Browse files
authored
[UI] on read_pods filter only spilo pods (#1297)
1 parent 260714b commit 646c28e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/operator_ui/spiloutils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ def encode_labels(label_selector):
107107
])
108108

109109

110+
def cluster_labels(spilo_cluster):
111+
labels = COMMON_CLUSTER_LABEL
112+
labels[OPERATOR_CLUSTER_NAME_LABEL] = spilo_cluster
113+
return labels
114+
115+
110116
def kubernetes_url(
111117
resource_type,
112118
namespace='default',
@@ -151,7 +157,7 @@ def read_pods(cluster, namespace, spilo_cluster):
151157
cluster=cluster,
152158
resource_type='pods',
153159
namespace=namespace,
154-
label_selector={OPERATOR_CLUSTER_NAME_LABEL: spilo_cluster},
160+
label_selector=cluster_labels(spilo_cluster),
155161
)
156162

157163

0 commit comments

Comments
 (0)