mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 22:46:52 +02:00
* Initial commit for our basic Postgres Operator UI: * Create and modify Postgres manifests * Watch Operator Logs in the UI * Observe cluster creation progress * S3 Backup browser for clone and restore Many thanks to Manuel Gomez and Jan Mussler for the initial UI work a long time ago!
13 lines
471 B
Python
13 lines
471 B
Python
import time
|
|
import json
|
|
import request
|
|
|
|
|
|
class MockCluster:
|
|
|
|
def get_pods(self):
|
|
return [{"name": "cluster-1-XFF", "role": "master", "ip": "localhost", "port": "8080"},
|
|
{"name": "cluster-1-XFE", "role": "replica", "ip": "localhost", "port": "8080"},
|
|
{"name": "cluster-1-XFS", "role": "replica", "ip": "localhost", "port": "8080"},
|
|
{"name": "cluster-2-SJE", "role": "master", "ip": "localhost", "port": "8080"}]
|