Commit Graph

979 Commits

Author SHA1 Message Date
Jan Mußler ad965a191b Fix non existing fields in gp2 discovery. 2020-12-09 15:44:15 +01:00
Jan Mußler b2e390ce20 More logs. describe fails. 2020-12-09 15:37:44 +01:00
Jan Mußler 7a89a7c39f Finalizing ebs migration. 2020-12-09 15:18:15 +01:00
Jan Mußler 88aab59332 Reflect k8s volume id in test data. Extract aws volume id from k8s value. 2020-12-09 15:00:30 +01:00
Jan Mußler a138767dee Skip local e2e tests. 2020-12-09 14:47:13 +01:00
Jan Mußler b44ac2f065 Add more output. 2020-12-09 14:43:45 +01:00
Jan Mußler b3ca63c029 Log warning if modify failed, e.g. due to ebs volume state. 2020-12-09 14:02:52 +01:00
Jan Mußler 75c652e77f Ensure to log errors. 2020-12-09 14:00:14 +01:00
Jan Mußler 939435bc41 Logging of migration action. 2020-12-09 13:22:58 +01:00
Jan Mußler c01ae0c1c7 More logs. 2020-12-09 13:19:09 +01:00
Jan Mußler f697954c3d store volumes and compare. 2020-12-09 12:20:47 +01:00
Jan Mußler 1f6fe9bcad Fix test case config. 2020-12-09 12:03:33 +01:00
Jan Mußler 17966ffcbf create all pvs. 2020-12-08 23:43:57 +01:00
Jan Mußler 3e3f3f8352 Fixing test setup. Late night... 2020-12-08 23:26:20 +01:00
Jan Mußler c9f83f07dc volume ids. 2020-12-08 23:22:12 +01:00
Jan Mußler dc91b60119 Fix volume id. 2020-12-08 23:17:48 +01:00
Jan Mußler 51f4683204 Fix mapping of ids in test. 2020-12-08 23:11:57 +01:00
Jan Mußler 0bab888dc7 Expect modify call. 2020-12-08 23:05:47 +01:00
Jan Mußler 4193dce95e Wrong toggle. 2020-12-08 23:00:49 +01:00
Jan Mußler 523e2d67d8 Learning as one goes. Initialize map. 2020-12-08 22:52:28 +01:00
Jan Mußler c85c288c25 Macke mocks phony due to overlap in foldername. 2020-12-08 22:33:13 +01:00
Jan Mußler 515f2f622f Changes to Makefile and return value. 2020-12-08 19:01:47 +01:00
Jan Mußler e79a6c4ec9 Rename var. 2020-12-08 16:16:04 +01:00
Jan Mußler 163fc931c2 push fake package. 2020-12-07 23:48:41 +01:00
Jan Mußler d4d9f0a62a more changes for code gen. 2020-12-07 23:45:19 +01:00
Jan Mußler e7c6fab748 Dep update. 2020-12-07 22:59:51 +01:00
Jan Mußler b42013455f Added Gomock and one test case with mock. 2020-12-07 22:36:17 +01:00
Jan Mußler 9e095e49d8 Default volume migration done. 2020-12-07 17:52:02 +01:00
Jan Mußler 6bb78c8de2 initial commit for gp3 migration. 2020-12-07 14:57:21 +01:00
Sergey Dudoladov dc9a5b1e61
Introduce PGVERSION (#1172)
* introduce PGVERSION

Co-authored-by: Sergey Dudoladov <sergey.dudoladov@zalando.de>
2020-11-27 18:49:49 +01:00
Sergey Dudoladov 6f5751fe55
raise log level for malformed secrets (#1235)
Co-authored-by: Sergey Dudoladov <sergey.dudoladov@zalando.de>
2020-11-27 18:47:50 +01:00
Felix Kunde 2b5382edf3
Add PR template (#1234)
* Add PR template

* move to github folder and rename file

* add headlines
2020-11-27 15:40:35 +01:00
Boyan Bonev 85d1a72cd6
Add scheduler name support - [Update #990] (#1226)
* Add ability to specify alternative schedulers via schedulerName.

Co-authored-by: micah.coletti@gmail.com <micah.coletti@gmail.com>
2020-11-25 10:55:05 +01:00
Felix Kunde cfd83e33c8
preserving fields only when using k8s specs (#1228)
* preserving fields when k8s specs are used with x-kubernetes-preserve-unknown-fields flag
* cleaning up merge errors in postgresql and operatorconfiguration CRD
* add operatorconfiguration CRD and sample manifests in setUpClass of e2e tests
* update generated code and go modules
2020-11-24 16:23:22 +01:00
Jan Mussler c4ae11629b
Fix connection pooler deployment selectors (#1213)
Stick with the existing pooler deployment selector labels to make it compatible with existing deployments.

Make the use of additional labels clear and avoid where not needed.

Deployment Selector and Service Selector now do not use extra labels, pod spec does.
2020-11-23 17:18:18 +01:00
Thunderbolt 580883bc59
add operator ui helm chart value imagePullSecret (#1211) 2020-11-17 10:47:35 +01:00
Jan Mussler 67d1b4b167
compile coverage report and add badges. (#1218)
Add GH badges, and added coveralls support again.
2020-11-16 12:08:28 +01:00
Jan Mussler 65d1a71cc9
Update README.md (#1217)
Removed all the badges, they don't work anyways and are off.
2020-11-16 10:30:18 +01:00
Felix Kunde 3e42e8a896
CRD: preserve unknown fields and add to all category (#1212)
* CRD: preserve unknown fields and add to all category

* allow Pg13

* left over
2020-11-16 10:29:01 +01:00
Jan Mussler a7f453352a
Use Github.com actions to run tests and e2e tests. (#1215)
* Use GH action to run tests and end 2 end tests.
* Remove travis.
2020-11-16 10:15:47 +01:00
Rafia Sabih 49158ecb68
Connection pooler for replica (#1127)
* Enable connection pooler for replica
* Refactor code for connection pooler
  - Move all the relevant code to a separate file
  - Move all the related tests to a separate file
  - Avoid using cluster where not required
  - Simplify the logic in sync and other methods
  - Cleanup of duplicated or unused code
* Fix labels for the replica pods
* Update deleteConnectionPooler to include role
* Adding test cases and other changes
   - Fix unit test and delete secret when required only
   - Make sure we use empty fresh cluster for every test case.
* enhance e2e test
* Disable pooler in complete manifest as this is source for e2e too an creates unnecessary pooler setups.

Co-authored-by: Rafia Sabih <rafia.sabih@zalando.de>
Co-authored-by: Jan Mussler <janm81@gmail.com>
2020-11-13 14:52:21 +01:00
Felix Kunde 3fed565328
check resize mode on update events (#1194)
* check resize mode on update events

* add unit test for PVC resizing

* set resize mode to pvc in charts and manifests

* add test for quantityToGigabyte

* just one debug line for syncing volumes

* extend test and update log msg
2020-11-11 13:22:43 +01:00
Sergey Dudoladov e779eab22f
Update e2e pipeline (#1202)
* clean up after test_multi_namespace test

* see the PR description for complete list of changes

Co-authored-by: Sergey Dudoladov <sergey.dudoladov@zalando.de>
2020-11-11 10:21:46 +01:00
Felix Kunde b379db20ed
fix redundant appending of infrastructure roles (#1192) 2020-11-05 12:04:51 +01:00
Felix Kunde 9a824c38f4
fix identation in operatorconfiguration CRD and jsonPath case (#1195)
* fix identation in operatorconfiguration CRD

* fix jsonPath field case
2020-11-05 11:49:24 +01:00
Jan Mussler 90799d7e7f
More output from test watch script. All namespaces and deployments. (#1193) 2020-11-04 16:40:15 +01:00
Pavel Tumik db0d089e75
Fix cloning from GCS (#1176)
* Fix clone from gcs

* pass google credentials env var if using GS bucket

* remove requirement for timezone as GCS returns timestamp in local time to the region it is in

* Revert "remove requirement for timezone as GCS returns timestamp in local time to the region it is in"

This reverts commit ac4eb350d9.

* update GCS documentation

* remove sentence about logical backups

* reword pod environment configmap section

* fix documentation
2020-11-03 15:05:44 +01:00
Sergey Dudoladov 4f3bb6aa8c
Remove operator checks that prevent PG major version upgrade (#1160)
* remove checks that prevent major version upgrade

Co-authored-by: Sergey Dudoladov <sergey.dudoladov@zalando.de>
2020-11-02 16:49:29 +01:00
Felix Kunde d76419565b
move to apiextensions from v1beta1 to v1 (#746)
* move to apiextensions from v1beta1 to v1

* remove metadata from CRD validation

* some forgotten change
2020-11-02 10:49:29 +01:00
Jan Mussler 7f7beba66b
Improving e2e more (#1185)
* Add curl to operator image.

* Wait for idle operator in delete.
2020-10-29 13:59:22 +01:00