Files
postgres-operator/ui/operator_ui/mock.py
T
Felix Kunde 4eabc8f5db Initial commit for Postgres Operator UI (#613)
* 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!
2019-07-12 17:02:55 +02:00

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"}]