• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zalando-incubator / postgres-operator / 740
11%
master: 24%

Build:
Build:
LAST BUILD BRANCH: set-human-role-var
DEFAULT BRANCH: master
Ran 13 Dec 2017 02:37PM UTC
Jobs 1
Files 31
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
740

push

travis-ci

alexeyklyukin
Fixes for the case of re-creating the cluster after deletion.

- make sure that the secrets for the system users (superuser, replication)
  are not deleted when the main cluster is. Therefore, we can re-create
  the cluster, potentially forcing Patroni to restore it from the backup
  and enable Patroni to connect, since it will use the old password, not
  the newly generated random one.

- when syncing users, always check whether they are already in the DB.
  Previously, we did this only for the sync cluster case, but the new
  cluster could be actually the one restored from the backup by Patroni,
  having all or some of the users already in place.

 - delete endponts last. Patroni uses the $clustername endpoint in order
   to store the leader related metadata. If we remove it before removing
   all pods, one of those pods running Patroni will re-create it and the
   next attempt to create the cluster with the same name will stuble on
   the existing endpoint.

 - Use db.Exec instead of db.Query for queries that expect no result.
   This also fixes the issue with the DB creation, since we didn't
   release an empty Row object it was not possible to create more than
   one database for a cluster.

33 of 33 new or added lines in 5 files covered. (100.0%)

543 of 4769 relevant lines covered (11.39%)

0.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
pkg/cluster/resources.go
2
100.0
pkg/cluster/pg.go
3
100.0
pkg/util/users/users.go
8
100.0
pkg/cluster/sync.go
15
100.0
pkg/cluster/cluster.go
Jobs
ID Job ID Ran Files Coverage
1 740.1 13 Dec 2017 02:37PM UTC 0
11.39
Travis Job 740.1
Source Files on build 740
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #740
  • 7e4d93f9 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc