Commit Graph

1034 Commits

Author SHA1 Message Date
Jan Mußler 66b5e390d3 Fixing full upgrade mode. 2021-02-25 11:36:17 +01:00
Jan Mußler f600fc5785 Dont swallog pod list error. 2021-02-25 11:28:27 +01:00
Jan Mußler 92a855372d Only attempt upgrade if update is ok. 2021-02-25 11:20:14 +01:00
Jan Mußler 3463e8531b Deal with major version in diff. 2021-02-24 19:11:27 +01:00
Jan Mußler 3c4b159d84 Fix version mapping for 9.6 and 9.5 2021-02-24 12:34:21 +01:00
Jan Mußler 2efa831245 Fix upgrade command, pods got lost. 2021-02-24 12:12:36 +01:00
Jan Mußler 1f1eab4b28 Fixing command one more time. 2021-02-24 12:07:53 +01:00
Jan Mußler 13c6c76e1b Fixing commands due to string[] 2021-02-24 11:32:08 +01:00
Jan Mußler f4027ac3f0 Removing code. Capital log message. 2021-02-23 23:12:45 +01:00
Jan Mußler cd28715a20 Working major version trigger. However current policies do now allow execution. 2021-02-23 23:06:18 +01:00
Jan Mußler c0122bfc53 Try with full path spec. 2021-02-23 21:47:32 +01:00
Jan Mußler 9c41e87007 Fix logging command. 2021-02-23 21:35:49 +01:00
Jan Mußler c059ab7527 Log command. 2021-02-23 21:28:33 +01:00
Jan Mußler 0d9a4fb6f4 Switch user for migration. 2021-02-23 18:06:36 +01:00
Jan Mußler 5c2ae67d89 Upgrade also in sync. more logs. 2021-02-23 17:33:44 +01:00
Jan Mußler 08e921a443 working on e2e test. fixing number mapping. 2021-02-23 14:51:59 +01:00
Jan Mußler 1d657f4295 More logging along the major upgrade. 2021-02-23 14:08:52 +01:00
Jan Mußler 510985ffd8 Fix patroni test with mock. 2021-02-23 13:20:51 +01:00
Jan Mußler 3e0a5d03a9 Adding more patroni fields. Added example result. 2021-02-22 23:48:27 +01:00
Jan Mußler 57af48d525 Now using proper struct to read Patroni API response. 2021-02-22 23:42:46 +01:00
Jan Mußler 620521d2a8 Proper unmarshal. 2021-02-22 23:34:11 +01:00
Jan Mußler 6893d0f874 Removing tests from patroni.go 2021-02-20 00:22:11 +01:00
Jan Mußler 91631d5d60 Restore mocks file. 2021-02-19 19:30:28 +01:00
Jan Mußler ee28fa27e4 Trying to fix dependencies. 2021-02-19 19:25:18 +01:00
Jan Mußler 25152157ba Fix init? and implement proper tests for patroni. 2021-02-19 18:18:15 +01:00
Jan Mußler 14e04cc7fe Remove function for state only. Fix var names. 2021-02-19 11:34:40 +01:00
Jan Mußler c6d7cb5ed5 Configure proper PGVERSION for Pod. 2021-02-18 22:26:53 +01:00
Jan Mußler fe465cf492 Making progress on automated upgrade support via manifest and global upgrades. 2021-02-18 22:01:30 +01:00
Felix Kunde 3962e71ddd
bump to v1.6.1 (#1367)
* bump tp v1.6.1
* update UI chart
* improve docs and manifest examples
* use Spilo 2.0-r4 and update docs
* minor updates to admin docs
2021-02-18 13:38:27 +01:00
georgebarbarosie cee4bf82c7
small fix for postgresql CRD (#1368) 2021-02-18 08:21:26 +01:00
Felix Kunde 41858a702c
making pgTeamMap a pointer (#1349)
* making pgTeamMap a pointer
* init empty map
* add e2e test for additional teams and members
* update test_min_resource_limits
* add more waiting in node_affinity_test
* no need for pointers in map of postgresTeamMebership
* another minor update on node affinity test
* refactor and fix fetching additional members
2021-02-16 10:38:20 +01:00
balibebas 137fbbf41e
update quickstart to add k3d (#1334) 2021-02-15 17:22:25 +01:00
Felix Kunde 837f845a1c
update kubectl-pg plugin (#1264)
* update kubectl-pg plugin
* fix remaining build issues and update go modules
* some more README updates
2021-02-15 17:13:07 +01:00
Michael Seiwald 17da6bc649
Truncate cronjob name at 52 characters (#1208) 2021-02-15 17:00:21 +01:00
Jan Mussler 772f0ca771
Fix volume sync order. (#1340) 2021-02-12 17:36:11 +01:00
Tommaso Pozzetti c1c0d5faa1
Fix operator configs runasuser and runasgroup (#1361)
This commit fixes a typo in the operator's configuration
that would lead to the configs spilo_runasuser and
spilo_runasgroup to be ignored.
2021-02-12 11:04:23 +01:00
Felix Kunde 4d2b51de41
upgrade pip to latest version to avoid broken deps (#1357) 2021-02-10 11:24:24 +01:00
zvier 6aeb92f024
code optimization (#1350)
* pre-allocate cap for slice structure
* if clause is no need because of range, and kubelet also use range
  method to get each capability so there is no side-effect

Signed-off-by: Jeff Zvier <zvier20@gmail.com>
2021-02-09 09:35:24 +01:00
Aaron Peschel 2c3cd3ae02
Fix CI Pipeline (#1345)
This commit attempts to fix the CI issues by upgrading the checkout
action to v2. This fix is documented by the coverallsapp upstream.
2021-02-03 14:41:29 +01:00
Felix Kunde 0cce565b65
fix when adding only one capability (#1339)
* fix when adding only one capability

* fix error messages in unit test
2021-01-29 16:10:27 +01:00
Felix Kunde 12ad8c91fa
configurable container capabilities (#1336)
* configurable container capabilities

* revert change on TestTLS

* fix e2e test

* minor fix
2021-01-29 14:54:48 +01:00
Jan Mussler d488ae10a0
Min 2 zalando approvers. (#1338) 2021-01-29 11:12:08 +01:00
Victor Login 9d5841cdaa
Update values.yaml (#1333) 2021-01-27 10:11:44 +01:00
Jan Mussler 43168ca622
Also sync volumes on updates. (#1330) 2021-01-25 20:28:37 +01:00
Felix Kunde ac2a00c45e
set allowPrivilegeEscalation for deployment templates (#1328)
* set allowPrivilegeEscalation for deployment templates

* securityContext of container, not pod

* aligning

* default service account for pooler
2021-01-25 18:23:29 +01:00
Sergey Dudoladov 5ecb7b42e0
persist modified go.sum (#1329)
Co-authored-by: Sergey Dudoladov <sergey.dudoladov@zalando.de>
2021-01-25 17:00:14 +01:00
Jan Mussler 4a88f00a3f
Full AWS gp3 support for iops and througput config. (#1261)
Support new AWS EBS volume type `gp3` with `iops` and `throughput` in the manifest.

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2021-01-25 10:07:18 +01:00
Felix Kunde 4ea0b5f432
set AllowPrivilegeEscalation on container securityContext (#1326) 2021-01-22 14:06:19 +01:00
Rafia Sabih a9b677c957
Use fake client for connection pooler (#1301)
Connection pooler creation, deletion, and synchronization now tested using fake client API.

Co-authored-by: Rafia Sabih <rafia.sabih@zalando.de>
2021-01-19 17:40:20 +01:00
Felix Kunde 2b45478f3a
add host info to connection docs (#1319) 2021-01-19 10:47:32 +01:00