mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-20 15:03:39 +02:00
fix e2e
This commit is contained in:
@@ -223,7 +223,7 @@ class EndToEndTestCase(unittest.TestCase):
|
|||||||
k8s.update_config(patch_lazy_spilo_upgrade)
|
k8s.update_config(patch_lazy_spilo_upgrade)
|
||||||
|
|
||||||
# restart the pod to get a container with the new image
|
# restart the pod to get a container with the new image
|
||||||
podsList = self.api.core_v1.list_namespaced_pod(namespace, label_selector=pg_cluster_name)
|
podsList = k8s.api.core_v1.list_namespaced_pod(namespace, label_selector=pg_cluster_name)
|
||||||
for pod in podsList.items:
|
for pod in podsList.items:
|
||||||
if pod.metadata.labels.get('spilo-role') == 'master':
|
if pod.metadata.labels.get('spilo-role') == 'master':
|
||||||
master_pod = pod.metadata.name
|
master_pod = pod.metadata.name
|
||||||
|
|||||||
Reference in New Issue
Block a user