mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-09 16:06:06 +02:00
make pooler labels configurable and change defaults
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
kubectl delete postgresql acid-minimal-cluster
|
||||
kubectl delete deployments -l application=db-connection-pooler,cluster-name=acid-minimal-cluster
|
||||
kubectl delete deployments -l application=spilo,cluster-name=acid-minimal-cluster,component=db-connection-pooler
|
||||
kubectl delete statefulsets -l application=spilo,cluster-name=acid-minimal-cluster
|
||||
kubectl delete services -l application=spilo,cluster-name=acid-minimal-cluster
|
||||
kubectl delete configmap postgres-operator
|
||||
|
||||
@@ -10,13 +10,13 @@ echo
|
||||
echo 'Pods'
|
||||
kubectl get pods -l application=spilo -o wide --all-namespaces
|
||||
echo
|
||||
kubectl get pods -l application=db-connection-pooler -o wide --all-namespaces
|
||||
kubectl get pods -l application=spilo,component=db-connection-pooler -o wide --all-namespaces
|
||||
echo
|
||||
echo 'Statefulsets'
|
||||
kubectl get statefulsets --all-namespaces
|
||||
echo
|
||||
echo 'Deployments'
|
||||
kubectl get deployments --all-namespaces -l application=db-connection-pooler
|
||||
kubectl get deployments --all-namespaces -l application=spilo,component=db-connection-pooler
|
||||
kubectl get deployments --all-namespaces -l application=postgres-operator
|
||||
echo
|
||||
echo
|
||||
|
||||
@@ -678,7 +678,7 @@ class EndToEndTestCase(unittest.TestCase):
|
||||
the end turn connection pooler off to not interfere with other tests.
|
||||
'''
|
||||
k8s = self.k8s
|
||||
pooler_label = 'application=db-connection-pooler,cluster-name=acid-minimal-cluster'
|
||||
pooler_label = 'application=spilo,component=db-connection-pooler,cluster-name=acid-minimal-cluster'
|
||||
master_pooler_label = 'connection-pooler=acid-minimal-cluster-pooler'
|
||||
replica_pooler_label = master_pooler_label + '-repl'
|
||||
self.eventuallyEqual(lambda: k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync")
|
||||
|
||||
Reference in New Issue
Block a user