Sergey Dudoladov
40175633a5
properly generate podTemplate for the cron job's pod
2019-04-02 15:26:27 +02:00
Sergey Dudoladov
0e5ed5ee8f
Merge branch 'master' into add-logical-backup
2019-04-01 13:52:18 +02:00
Stephane T
edeb06d39c
fix: update init_containers ( #518 )
...
* fix: PATH expension in Makefile
Signed-off-by: Stephane Tang <hi@stang.sh>
* refact: pass list of containers to compareContainers()
Signed-off-by: Stephane Tang <hi@stang.sh>
* compare initContainers while comparing StatefulSet
Fixes #517
Signed-off-by: Stephane Tang <hi@stang.sh>
* refact: compareContainers()
Signed-off-by: Stephane Tang <hi@stang.sh>
2019-03-19 17:46:12 +01:00
Sergey Dudoladov
0b53dbe5dc
Set statefulset update and management policy explicitly ( #515 )
...
* fix logging in retry
* explicitly set the stateful set update strategy to onDelete
* add podManagementPolicy
2019-03-13 11:49:18 +01:00
Sergey Dudoladov
bc0923dab8
use custmom schedule
2019-03-07 13:22:35 +01:00
Sergey Dudoladov
825c5139c3
Merge branch 'master' into add-logical-backup
2019-03-05 14:07:48 +01:00
Vineeth Reddy
db72d82f14
gofmt and golint fixes ( #506 )
...
* fix gofmt and golint issues
2019-03-04 13:13:55 +01:00
Sergey Dudoladov
f400539b69
Retry moving master pods ( #463 )
...
* Retry moving master pods
* bump up master pod wait timeout
2019-02-28 16:19:27 +01:00
Sergey Dudoladov
587d9091e7
Set HUMAN_ROLE Spilo env var ( #409 )
...
* Set HUMAN_ROLE Spilo env var
2019-02-27 13:40:42 +01:00
Sergey Dudoladov
18e2d7a26f
address a code review
2019-02-27 13:24:35 +01:00
Sergey Dudoladov
f4d8ec2878
update generated code
2019-02-27 13:08:25 +01:00
Sergey Dudoladov
9d430fc141
resolve merge conflicts
2019-02-27 13:07:48 +01:00
Sergey Dudoladov
74cc9a44f8
Post-graduation updates ( #495 )
...
* update generated code
* update glide.lock
* Verify staleness of generated code during build and before running tests
2019-02-26 12:34:05 +01:00
Felix Kunde
31e568157b
reflect change in github url ( #496 )
...
Project was moved from the incubator to the Zalando main org, hence the rename
2019-02-25 11:26:55 +01:00
teuto.net Netzdienste GmbH
26a7fdfa9f
Add Pod Anti Affinity ( #489 )
...
* Add Pod Anti Affinity
2019-02-21 16:37:03 +01:00
Stephane T
d11b23bd71
Add inherited_labels ( #459 )
...
* add support for inherited_labels
Signed-off-by: Stephane Tang <hi@stang.sh>
* update docs with inherited_labels
Signed-off-by: Stephane Tang <hi@stang.sh>
2019-02-14 12:29:06 +01:00
Rafał Kupka
ba23de3d17
Pass PodEnvironmentConfigMap ( #477 )
2019-02-04 12:24:49 +01:00
Maxim Ivanov
ed6acc1178
Correctly report success in .status on Update ( #469 )
2019-01-31 13:09:17 +01:00
Maxim Ivanov
3544cc90fa
Allow specifying init_containers in Postgres CRD ( #445 )
...
* Add support for init_containers
2019-01-29 11:08:44 +01:00
Armin Nesiren
6f6a599c90
Added possibility to add custom annotations to LoadBalancer service. ( #461 )
...
* Added possibility to add custom annotations to LoadBalancer service.
2019-01-25 11:35:27 +01:00
Maxim Ivanov
8330905ce7
Don't panic if Service for the role was not found ( #451 )
2019-01-18 13:38:47 +01:00
Maxim Ivanov
1109c861fb
Report new Postgres CR error when previously incorrect one is being updated ( #449 )
2019-01-18 13:36:44 +01:00
Sergey Dudoladov
11019f557e
Submit hello world cron job
2019-01-15 15:44:57 +01:00
Sergey Dudoladov
68755ffff5
Generate empty cron job spec
2019-01-14 16:14:50 +01:00
Sergey Dudoladov
144a7cec0c
Extend KubeClient to work with cron jobs
2019-01-11 16:28:01 +01:00
Sergey Dudoladov
5c7233a483
Add a stub method for cron job creation
2019-01-11 16:03:18 +01:00
Sergey Dudoladov
5811175f9f
Address review comments
2019-01-11 11:40:53 +01:00
Sergey Dudoladov
4088e0090f
Sketch operator conf/docs
2019-01-08 14:40:43 +01:00
Jan Mussler
c70905ae8b
Modifying some of the logging to be more descriptive. ( #440 )
...
* Modifying some of the logging to be more descriptive.
2019-01-08 13:07:36 +01:00
zerg-junior
4b5d3cd121
Fix golint failures
...
* Fix golint fails based on the original work from the user u5surf
* Skip installing Docker as CDP now have one pre-installed (repairs builds on CDP)
2019-01-08 13:04:48 +01:00
Sergey Dudoladov
ad397045f7
Extend Postgres manifest with new params
2019-01-08 12:56:55 +01:00
Arve Knudsen
f7058c754d
Pass more variables to Spilo container ( #437 )
...
Pass KUBERNETES_SCOPE_LABEL, KUBERNETES_ROLE_LABEL and KUBERNETES_LABELS
to spilo container, so that they could be changed. Fix for #411
2019-01-04 13:42:52 +01:00
zerg-junior
5cfcc453a9
Update CRD configuration docs and fix the CDP build ( #414 )
...
* Update CRD configuration docs
* document resource consumption of the operator
* Add talks by Oleksii
2019-01-02 12:01:47 +01:00
zerg-junior
c0b0b9a832
[WIP] Add 'admin' option to create role ( #425 )
...
* Add 'admin' option to create role
* Fix run_locally_script
2018-12-27 10:14:33 +01:00
zerg-junior
26670408c4
Revert "Unify warnings about unmovable pods ( #389 )" ( #430 )
...
This reverts commit 4fa09e0dcb .
Reason: the reverted commit bloats the logs
2018-12-21 17:39:34 +01:00
zerg-junior
4fa09e0dcb
Unify warnings about unmovable pods ( #389 )
...
* Unify warnings about unmovable pods
* Log conditions that prevent master pod migration
2018-12-21 16:44:31 +01:00
Dmitry Dolgov
d6e6b00770
Add shm_volume option ( #427 )
...
Add possibility to mount a tmpfs volume to /dev/shm to avoid issues like
[this](https://github.com/docker-library/postgres/issues/416 ). To achieve that
two new options were introduced:
* `enableShmVolume` to PostgreSQL manifest, to specify whether or not mount
this volume per database cluster
* `enable_shm_volume` to operator configuration, to specify whether or not mount
per operator.
The first one, `enableShmVolume` takes precedence to allow us to be more flexible.
2018-12-21 16:22:30 +01:00
zerg-junior
45c89b3da4
[WIP] Add set_memory_request_to_limit option ( #406 )
...
* Add set_memory_request_to_limit option
2018-11-15 14:00:08 +01:00
zerg-junior
96e3ea9511
Properly overwrite empty allowed source ranges for load balancers ( #392 )
...
* Properly overwrite empty allowed source ranges for load balancers
2018-11-06 11:08:45 +01:00
zerg-junior
86ba92ad02
Rename 'permanent_slots' field to 'slots' ( #401 )
2018-10-31 16:11:28 +01:00
Dmitry Dolgov
78e83308fc
API url regexps ( #400 )
...
* Make url regexp more flexible, to accept identifier with dashes
* Add few simple tests
* Check also numerics
2018-10-31 14:52:41 +01:00
zerg-junior
1b4181a724
[WIP] Add the ability to configure replications slots in Patroni ( #398 )
...
* Add the ability to configure replication slots in Patroni
* Add debugging to Makefile for CDP builds
2018-10-31 13:10:56 +01:00
zerg-junior
7907f95d2f
Improve reporting about rolling updates ( #391 )
2018-09-24 11:57:43 +02:00
Noah Kantrowitz
688d252752
Some tweaks to ensure compat with newer Go. ( #383 )
2018-09-17 10:13:07 +02:00
Noah Kantrowitz
0b75a89920
Fix the casing of github.com/Sirupsen/logrus to match what the project itself uses. ( #380 )
...
Dep enforces this.
2018-09-06 10:26:48 +02:00
Noah Kantrowitz
a4224f6063
Move CRD definitions into a formal API to allow access from other controllers. ( #378 )
2018-08-31 11:20:02 +02:00
zerg-junior
25fa45fd58
[WIP] Grant 'superuser' to the members of Postgres admin teams ( #371 )
...
Added support for superuser team in addition to the admin team that owns the postgres cluster.
2018-08-30 10:51:37 +02:00
zerg-junior
1e53e22773
Improve error reporting for short cluster names ( #377 )
...
* Improve error reporting for short cluster names
* Revert to clusterName
2018-08-29 17:08:59 +02:00
zerg-junior
aeae0a6ef2
Use cluster's own namespace to patch the cluster manifest ( #373 )
2018-08-22 11:07:12 +02:00
Oleksii Kliukin
e1ed4b847d
Use code-generation for CRD API and deepcopy methods ( #369 )
...
Client-go provides a https://github.com/kubernetes/code-generator package in order to provide the API to work with CRDs similar to the one available for built-in types, i.e. Pods, Statefulsets and so on.
Use this package to generate deepcopy methods (required for CRDs), instead of using an external deepcopy package; we also generate APIs used to manipulate both Postgres and OperatorConfiguration CRDs, as well as informers and listers for the Postgres CRD, instead of using generic informers and CRD REST API; by using generated code we can get rid of some custom and obscure CRD-related code and use a better API.
All generated code resides in /pkg/generated, with an exception of zz_deepcopy.go in apis/acid.zalan.do/v1
Rename postgres-operator-configuration CRD to OperatorConfiguration, since the former broke naming convention in the code-generator.
Moved Postgresql, PostgresqlList, OperatorConfiguration and OperatorConfigurationList and other types used by them into
Change the type of the Error field in the Postgresql crd to a string, so that client-go could generate a deepcopy for it.
Use generated code to set status of CRD objects as well. Right now this is done with patch, however, Kubernetes 1.11 introduces the /status subresources, allowing us to set the status with
the special updateStatus call in the future. For now, we keep the code that is compatible with earlier versions of Kubernetes.
Rename postgresql.go to database.go and status.go to logs_and_api.go to reflect the purpose of each of those files.
Update client-go dependencies.
Minor reformatting and renaming.
2018-08-15 17:22:25 +02:00