Felix Kunde
11c286fe9a
add unit test for syncSecrets + new updateSecret func
2022-02-09 18:40:49 +01:00
Felix Kunde
48cbc66d19
add missing parts to manifest reference docs
2022-02-01 14:11:29 +01:00
Felix Kunde
98f7014770
extend e2e test
2022-01-22 10:18:47 +01:00
Felix Kunde
87659286b7
small left over
2022-01-21 23:44:49 +01:00
Felix Kunde
f5e96c8aa5
update docs
2022-01-21 19:48:10 +01:00
Felix Kunde
73b4e3ac92
add IsDbOwner field in e2e test
2022-01-21 19:00:37 +01:00
Felix Kunde
bf1ce14fc8
choose right username in syncSecrets loop
2022-01-21 17:46:14 +01:00
Felix Kunde
fc2ba80099
cleanup on username mismatch if rotation was switched off
2022-01-21 17:46:14 +01:00
Felix Kunde
58280809d8
add e2e test
2022-01-21 17:46:14 +01:00
Felix Kunde
08542711e0
add user retention
2022-01-21 17:46:06 +01:00
Felix Kunde
ab9aff3775
password rotation in K8s secrets
...
add db connection to syncSecrets
2022-01-21 17:45:04 +01:00
Felix Kunde
259acddfa0
first steps for pw rotation
2022-01-17 15:04:13 +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
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
Dmitry Volodin
8959618471
Make test fails due to keeping github.com autogenerated folder in root ( #1713 )
2021-12-06 11:21:07 +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
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
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
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
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
Luc Ritchie
d20f511e44
docs: fix typo in option name for cross-ns secrets ( #1650 )
2021-10-25 16:18:51 +02:00
Jairo Llopis
720b4575c7
docs: fix broken links ( #1594 )
...
You cannot browse all these links within the published docs in GH pages.
2021-10-18 16:50:27 +02:00
Felix Kunde
6caf3a5359
e2e: wait for replica after failover before fetching leader ( #1649 )
2021-10-14 17:58:53 +02:00
Felix Kunde
08665bb2b1
import PodToleration from opConfig to internal config ( #1647 )
...
* import PodToleration from opConfig to internal config
* add examples to manifests and values.yaml
2021-10-14 12:15:00 +02:00
Felix Kunde
2a33bf3313
improve Patroni config sync ( #1635 )
...
* improve Patroni config sync
* collect new and updated slots to patch patroni
* refactor httpGet in Patroni and extend unit tests
* GetMemberData should call the patroni endpoint
* add PATCH test
2021-10-13 17:17:26 +02:00
Felix Kunde
6dc239aa32
update Go and dependencies ( #1645 )
...
* update Go and dependencies
* update deps for kubectl-pg too
* raise Go version for internal CI pipelines
2021-10-13 10:52:56 +02:00
Felix Kunde
e5fcb46ede
fix TestNodeAffinity in e2e tests ( #1643 )
...
* fix TestNodeAffinity in e2e tests
* skip node_readiness_label test for now
2021-10-13 10:52:36 +02:00
elmehdisaniss
1d4e491a80
Update user.md ( #1631 )
...
* Update user.md
* Update configmap.yaml
2021-10-12 14:57:49 +02:00
Felix Kunde
ab25fb29b7
make Postgres 14 available ( #1636 )
...
* make Postgres 14 available
* don't be too hard to 9.5
* bump Spilo image and more docs updates
* update e2e test upgrading to 14
2021-10-12 12:00:59 +02:00
Felix Kunde
f7b221de25
bump kind and use k8s = self.k8s in every test ( #1640 )
2021-10-08 17:24:17 +02:00
Jan Mussler
d0d7a32d52
Clearing up error on resize failure message. ( #1641 )
...
* Clearing up error message.
2021-10-08 17:11:21 +02:00
amirmd76
d3183604a7
Fix logical backup script sigpipe problem ( #1623 )
2021-09-30 14:36:17 +02:00
Youki Shiraishi
698377719f
docs: fix typos in credential names ( #1627 )
2021-09-30 14:34:48 +02:00
Felix Kunde
c8dc7ca871
fix operator 1.7.0 helm package ( #1616 )
2021-09-14 17:04:22 +02:00
Wolfgang Ebner
e74b1bd359
use relative path instead of $PWD for go:generate (for go 1.17 compatibility) ( #1615 )
2021-09-14 14:54:41 +02:00
Michael McMillan
458d7a1144
Fix malformed YAML in the manifest ( #1602 )
...
The ports section should be a list. Without this fix you'll trigger the following error:
```
Warning Create 2m38s postgres-operator json: cannot unmarshal object into Go struct field Sidecar.spec.sidecars.ports of type []v1.ContainerPort
```
2021-09-13 18:42:08 +02:00
Damiano Albani
9e291d0857
Expand list of variable types supported for ConfigMap generation ( #1603 )
2021-09-13 18:41:48 +02:00
Felix Kunde
ba6c3c39af
bump operator to v1.7.0 ( #1599 )
2021-08-27 14:33:54 +02:00
Felix Kunde
62ed7e470f
improve pooler sync ( #1593 )
...
* remove role from installLookupFunction and run it on database sync, too
* fix condition to decide on syncing pooler
* trigger lookup from database sync only if pooler is set
* use empty spec everywhere and do not sync if one lookupfunction was passed
* do not sync pooler after being disabled
2021-08-27 12:41:37 +02:00
Felix Kunde
7469efac88
enhance docs on clone and restore ( #1592 )
...
* enhance docs on clone and restore
* add chapter about upgrading the operator
* add section for standby clusters
* Update docs/administrator.md
Co-authored-by: Alexander Kukushkin <cyberdemn@gmail.com>
Co-authored-by: Alexander Kukushkin <cyberdemn@gmail.com>
2021-08-27 10:44:06 +02:00