Commit Graph

1145 Commits

Author SHA1 Message Date
Felix Kunde 47aa7b1c64 Merge branch 'master' into fes-support 2022-02-21 11:29:39 +01:00
Felix Kunde 3ce0b1e7fa
deprecate crd validation toggle and sync with manifests (#1781)
* deprecate crd validation toggle and sync with manifests
* fix description in pg crd manifests
* change CRD creation strategy
* affinity matchExpression has values
* lower repair period in e2e tests
2022-02-18 15:04:31 +01:00
Felix Kunde 658923d10d
Password rotation in secrets (#1749)
* password rotation in K8s secrets
* add db connection to syncSecrets
* add user retention
* add e2e test
* cleanup on username mismatch if rotation was switched off
* add unit test for syncSecrets + new updateSecret func
2022-02-18 11:54:47 +01:00
jopadi 95301c102e
Update codeowners and maintainers (#1773)
* change the code owners and maintainers

Co-authored-by: Jociele Padilha <jociele.padilha@zalando.de>
2022-02-08 17:08:26 +01:00
Felix Kunde 66824076e5 cosmetic changes 2022-01-28 14:21:23 +01:00
Felix Kunde a78a619e90
toleration diff and nodeReadinessLabel merge with manifest matchExpressions (#1729)
* include tolerations in statefulset comparison
* provide alternative merge behavior of nodeSelectorTerms for node readiness label
* add config option to change affinity merge behavior
* reworked e2e tests around node affinity
2022-01-27 15:57:24 +01:00
Felix Kunde 3f0ed26828 fix sync of publications 2022-01-26 23:15:28 +01:00
Felix Kunde 2630d8eff3 minor fixes 2022-01-26 14:04:17 +01:00
Felix Kunde 31ec300f87 alter publications if needed 2022-01-26 11:38:19 +01:00
Felix Kunde eb51428a44 quotes for schema and table 2022-01-25 18:57:55 +01:00
Felix Kunde 179fcb1126 switch to pgoutput plugin and let operator create publications 2022-01-25 17:18:49 +01:00
Felix Kunde e499567152 resolve conflict 2022-01-24 17:51:24 +01:00
Felix Kunde a686824ab8 move FES to v1 2022-01-24 17:19:07 +01:00
Damian Peckett fe340192ca
Add configuration flag for disabling operator CRD creation/update (#1733)
* Make CRD registration configurable and drop RBAC permissions when CRD registration is disabled
* add generated deep copy functions

Co-authored-by: Damian Peckett <d.peckett_admin@mgmt.innovo-cloud.de>
2022-01-13 15:20:04 +01:00
Felix Kunde b4155bc8fb
update year in LICENSE file to 2022 (#1734) 2022-01-06 10:55:29 +01:00
Felix Kunde 411abbe31e
handle case when Patroni returns that lag is unknown (#1724)
* handle case when Patroni returns that lag is unknown
* remove some prints from e2e test
2021-12-17 12:36:23 +01:00
Felix Kunde 087c379687
move to go 1.17.4 and update dependencies (#1717)
* move to go 1.17.4 and update dependencies
* use go install for mockgen and kind
2021-12-16 15:13:30 +01:00
Felix Kunde 284649500e disable streams in chart 2021-12-15 13:46:46 +01:00
Felix Kunde dfec6fd6b0 fix codegen to support both apis 2021-12-15 10:48:49 +01:00
Felix Kunde 7079d0ef80 fix unit test, too 2021-12-15 10:32:50 +01:00
Felix Kunde ff1ac1da4f replace dash with underscroe for slot name 2021-12-14 18:48:32 +01:00
Felix Kunde 07fd4ec00b
choose switchover candidate based on lag and role (#1700)
* choose switchover candidate based on lowest lag in MB and role (in synchronous mode)
2021-12-14 10:35:21 +01:00
Felix Kunde 8690cc90e8 add FES to RBAC in chart 2021-12-09 12:44:33 +01:00
Felix Kunde 74ee530a6c introduce applicationId for separate stream CRDs 2021-12-08 17:11:18 +01:00
Felix Kunde 96a2da1fca use defined fes CRD in unit test 2021-12-07 22:32:35 +01:00
Felix Kunde 90d6016dc8 sync streams only when they are defined in manifest 2021-12-06 16:35:11 +01:00
Felix Kunde 417308595a resolve conflict 2021-12-06 15:17:53 +01:00
Dmitry Volodin 8959618471
Make test fails due to keeping github.com autogenerated folder in root (#1713) 2021-12-06 11:21:07 +01:00
Felix Kunde 3804bc55c8 resolve conflict 2021-12-03 19:19:43 +01:00
Felix Kunde 8f2f70b4fe set applicationId of FES CRD by taking label from manifest 2021-12-03 19:17:01 +01:00
James McDonald def9e1d688
Support standby replication from GS (GCS) (#1446)
* Add support for manual gs_wal_path in standby
* Remove separate standby version configuration
* Remove setting standby path via cluster/uid/version
Picking up the version doesn't work reliably without making changes to
Spilo. It's clearer to just specify the full S3/GS bucket path.

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2021-12-03 11:24:29 +01:00
Felix Kunde 50a8bf5fee fix typo in CRD schema 2021-12-02 17:46:57 +01:00
Felix Kunde bde522ba2a make id and payload columns configurable 2021-12-02 17:31:31 +01:00
Felix Kunde 837969ed76
Update docs/reference/cluster_manifest.md
Co-authored-by: Paŭlo Ebermann <paul.ebermann@zalando.de>
2021-12-02 16:10:20 +01:00
Felix Kunde 1ed16fadca
make sure upgrade script runs on the master (#1715)
* make sure upgrade script runs on the master
* show a bit more logs from upgrade script
2021-12-02 14:10:58 +01:00
Felix Kunde bdf87da1fe
Merge branch 'master' into fes-support 2021-11-29 16:53:42 +01:00
Felix Kunde f7858ffb70
Initialize arrays of errors / error messages + minor refactoring (#1701)
* init error arrays correctly
* avoid nilPointer when syncing connectionPooler
* getInfrastructureRoles should return error
* fix unit tests and return type for getInfrastructureRoles
2021-11-29 12:49:12 +01:00
Jan Mussler 3e275d122a
Allow individual teams to do auto upgrade via operator. (#1699)
* Allow whitelisting of teams to do auto upgrade upgrade via operator.

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2021-11-29 12:47:18 +01:00
Felix Kunde 06956d172d existing slot must use the same plugin 2021-11-25 16:05:48 +01:00
Felix Kunde 8d52e8d3c6 Merge branch 'master' into fes-support 2021-11-25 15:55:14 +01:00
Dmitry Volodin fbd980af78
Operator fails with nil pointer dereference when CR validation is not passed (#1697) 2021-11-24 12:19:30 +01:00
Philip Sieder a6d4f23f90
Add user facing ClusterRoles to Helm chart (#1675)
To allow the usage of the [aggregate ClusterRoles]
(https://github.com/zalando/postgres-operator/blob/master/manifests/user-facing-clusterroles.yaml),
an option in the Helm chart is added.

Fixes https://github.com/zalando/postgres-operator/issues/1668

Co-authored-by: Philip Sieder <philip.sieder@tallence.com>
2021-11-19 11:28:17 +01:00
Olle Larsson 0b00372c78
Remove helm2 support from helm chart (#1679) 2021-11-19 11:25:49 +01:00
mujx e1504745df
Fix typo on postgres-operator-ui values (#1680) 2021-11-19 11:23:55 +01:00
bloever a55639d6b7
Adds required Azure backup env variable WALG_AZ_PREFIX (#1688) 2021-11-19 11:23:44 +01:00
Rafia Sabih e98439e5b6
Add log messages for usernames (#1692)
* add log messages for usernames
* document behavior better in logs

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2021-11-18 09:55:33 +01:00
Felix Kunde f9150aa6db
bump operator to v1.7.1 (#1670)
* bump operator to v1.7.1
* update UI image in manifest example
2021-11-03 16:55:01 +01:00
Felix Kunde fa63803be9 minor changes for comments 2021-10-26 17:13:18 +02:00
Felix Kunde a5acfd3b42 reflect latest change in restart logic 2021-10-26 17:06:06 +02:00
Felix Kunde 1eafd688d0
restart master first in some edge cases (#1655)
* restart master first in some edge cases

* edge case is when desired is lower than effective

* wait after config patch and restart on sync whenever we see pending_restart

* convert options to int to check decrease and add unit test

* minor update to e2e tests

* wait only after restart not every sync

* using spilo 14 e2e images
2021-10-26 16:43:19 +02:00