ba8cfe706a 
								
							 
						 
						
							
							
								
								Hotfix wrong code. Better PR will come and make this proper.  
							
							
							
						 
						
							2020-01-30 13:03:36 +01:00  
				
					
						
							
							
								 
						
							
								7fb163252c 
								
							 
						 
						
							
							
								
								standby clusters can only have 1 pod for now ( #797 )  
							
							
							
						 
						
							2020-01-16 10:47:34 +01:00  
				
					
						
							
							
								 
						
							
								cd110aabf4 
								
							 
						 
						
							
							
								
								Enforce minimum cpu and memory limits ( #731 )  
							
							... 
							
							
							
							* add validation for PG resources and volume size
* check resource requests also on UPDATE and SYNC + update docs
* if cluster was running don't error on sync 
							
						 
						
							2019-12-12 16:43:55 +01:00  
				
					
						
							
							
								 
						
							
								107334fe71 
								
							 
						 
						
							
							
								
								Add global option to enable/disable init containers and sidecars ( #478 )  
							
							... 
							
							
							
							* Add global option to enable/disable init containers and sidecars
* update dependencies 
							
						 
						
							2019-12-10 15:45:54 +01:00  
				
					
						
							
							
								 
						
							
								5f87384d7f 
								
							 
						 
						
							
							
								
								Passing endpoint, access and secret key to logical-backup container ( #628 )  
							
							... 
							
							
							
							* Added possibility to add custom annotations to LoadBalancer service.
* Added parameters for custom endpoint, access and secret key for logical backup.
* Modified dump.sh so it knows how to handle new features. Configurable S3 SSE 
							
						 
						
							2019-11-26 10:40:49 +01:00  
				
					
						
							
							
								 
						
							
								2ce602fcd7 
								
							 
						 
						
							
							
								
								fix errors when changing service type ( #716 )  
							
							... 
							
							
							
							* fix errors when changing service type
* nullify service and endpoint before recreation
* improve wait for delete logic and reuse config parameters 
							
						 
						
							2019-11-26 10:28:32 +01:00  
				
					
						
							
							
								 
						
							
								f9487e41c1 
								
							 
						 
						
							
							
								
								inject cluster name label into logical backup pod ( #725 )  
							
							... 
							
							
							
							* inject cluster name label into logical backup pod 
							
						 
						
							2019-11-20 13:58:41 +01:00  
				
					
						
							
							
								 
						
							
								0b544ae43f 
								
							 
						 
						
							
							
								
								pass additionalSecretMount to logical backup pod ( #714 )  
							
							
							
						 
						
							2019-11-19 18:06:55 +01:00  
				
					
						
							
							
								 
						
							
								535517cd1b 
								
							 
						 
						
							
							
								
								Custom annotations 329 ( #657 )  
							
							... 
							
							
							
							* Add ability for custom annotations to database pods 
							
						 
						
							2019-11-11 10:45:35 +01:00  
				
					
						
							
							
								 
						
							
								6e682fd6b5 
								
							 
						 
						
							
							
								
								Fixing spelling mistake in delete PVC function name ( #691 )  
							
							
							
						 
						
							2019-10-18 16:41:56 +02:00  
				
					
						
							
							
								 
						
							
								f0e29060b1 
								
							 
						 
						
							
							
								
								move StatefulSet to apps/v1 ( #675 )  
							
							
							
						 
						
							2019-09-30 16:42:04 +02:00  
				
					
						
							
							
								 
						
							
								4a863d2280 
								
							 
						 
						
							
							
								
								Avoid orphaned objects on delete ( #654 )  
							
							... 
							
							
							
							* Make setSpec function work correctly when updating cluster status fails 
							
						 
						
							2019-08-27 12:54:35 +02:00  
				
					
						
							
							
								 
						
							
								1d45a6aec3 
								
							 
						 
						
							
							
								
								change app label for logical backup pod ( #621 )  
							
							... 
							
							
							
							* change app label for logical backup pod 
							
						 
						
							2019-07-23 15:43:07 +02:00  
				
					
						
							
							
								 
						
							
								2c3c7fd244 
								
							 
						 
						
							
							
								
								query namespaced K8s API in logical backup script ( #623 )  
							
							
							
						 
						
							2019-07-18 14:00:30 +02:00  
				
					
						
							
							
								 
						
							
								3a914f9a3c 
								
							 
						 
						
							
							
								
								camelCasing all manifest parameters ( #602 )  
							
							... 
							
							
							
							* deprecate snake_case manifest parameters
* move backward compatible check and update test 
							
						 
						
							2019-07-05 18:14:03 +02:00  
				
					
						
							
							
								 
						
							
								36003b8264 
								
							 
						 
						
							
							
								
								enable shmVolume setting in OperatorConfiguration ( #605 )  
							
							... 
							
							
							
							* enable shmVolume setting in OperatorConfiguration 
							
						 
						
							2019-07-05 16:48:37 +02:00  
				
					
						
							
							
								 
						
							
								540d58d5bd 
								
							 
						 
						
							
							
								
								Adding the support for standby cluster  
							
							... 
							
							
							
							This will set up a continuous wal streaming cluster, by adding the corresponding section in postgres manifest. Instead of having a full-fledged standby cluster as in Patroni, here we use only the wal path of the source cluster and stream from there.
Since, standby cluster is streaming from the master and does not require to create or use databases of it's own. Hence, it bypasses the creation of users or databases.
There is a separate sample manifest added to set up a standby-cluster. 
							
						 
						
							2019-06-21 10:11:39 +02:00  
				
					
						
							
							
								 
						
							
								93bfed3e75 
								
							 
						 
						
							
							
								
								Add secret mount to operator ( #535 )  
							
							... 
							
							
							
							* add secret mount to operator 
							
						 
						
							2019-06-19 12:40:49 +02:00  
				
					
						
							
							
								 
						
							
								6918394562 
								
							 
						 
						
							
							
								
								Add PDB configuration toggle ( #583 )  
							
							... 
							
							
							
							* Don't create an impossible disruption budget for smaller clusters.
* sync PDB also on update 
							
						 
						
							2019-06-18 10:48:21 +02:00  
				
					
						
							
							
								 
						
							
								3553144cda 
								
							 
						 
						
							
							
								
								Support subPath in generated container ( #452 )  
							
							... 
							
							
							
							* mounted volumes now provide a subPath 
							
						 
						
							2019-06-17 15:49:01 +02:00  
				
					
						
							
							
								 
						
							
								c65a9baedf 
								
							 
						 
						
							
							
								
								specify ReadOnlyRootFilesystem: false for pod security policies ( #560 )  
							
							... 
							
							
							
							Explicitly specify ReadOnlyRootFilesystem: false so kubernetes can pick
a less restrictive policy the operator has access to. 
							
						 
						
							2019-06-17 14:03:33 +02:00  
				
					
						
							
							
								 
						
							
								bbf28c4df7 
								
							 
						 
						
							
							
								
								Add additional S3 settings for cloning ( #497 )  
							
							
							
						 
						
							2019-06-14 12:28:00 +02:00  
				
					
						
							
							
								 
						
							
								2886027516 
								
							 
						 
						
							
							
								
								Some typos/spelling mistakes fix ( #580 )  
							
							... 
							
							
							
							Harmless typos fix. 
							
						 
						
							2019-06-06 14:20:15 +02:00  
				
					
						
							
							
								 
						
							
								ec5b1d4d58 
								
							 
						 
						
							
							
								
								StatefulSet fsGroup config option to allow non-root spilo ( #531 )  
							
							... 
							
							
							
							* StatefulSet fsGroup config option to allow non-root spilo
* Allow Postgres CRD to overide SpiloFSGroup of the Operator.
* Document FSGroup of a Pod cannot be changed after creation. 
							
						 
						
							2019-06-04 16:38:26 +02:00  
				
					
						
							
							
								 
						
							
								ebda39368e 
								
							 
						 
						
							
							
								
								database.go: remove hardcoded .svc.cluster.local dns suffix ( #561 )  
							
							... 
							
							
							
							* database.go: substitute hardcoded .svc.cluster.local dns suffix with config parameter
Use the pod's configured dns search path, for clusters where .svc.cluster.local is not correct. 
							
						 
						
							2019-05-31 16:32:00 +02:00  
				
					
						
							
							
								 
						
							
								24d412a562 
								
							 
						 
						
							
							
								
								generate spilo config can return error (with test) ( #570 )  
							
							... 
							
							
							
							* fix: raise explicit error when failing to generate spilo config
Signed-off-by: Stephane Tang <hi@stang.sh> 
							
						 
						
							2019-05-22 17:35:03 +02:00  
				
					
						
							
							
								 
						
							
								1f4267eb05 
								
							 
						 
						
							
							
								
								fix: remove headless service config when deleting cluster ( #567 )  
							
							... 
							
							
							
							see: https://github.com/zalando/postgres-operator/issues/566 
Signed-off-by: Stephane Tang <hi@stang.sh> 
							
						 
						
							2019-05-21 13:49:34 +02:00  
				
					
						
							
							
								 
						
							
								f3e1e80aaf 
								
							 
						 
						
							
							
								
								Add logical backup ( #442 )  
							
							... 
							
							
							
							* Add k8s cron job to spawn logical backups
* Minor doc updates 
							
						 
						
							2019-05-16 15:52:01 +02:00  
				
					
						
							
							
								 
						
							
								2c02b371e2 
								
							 
						 
						
							
							
								
								fix statefulset sync ( #563 )  
							
							
							
						 
						
							2019-05-14 11:15:47 +02:00  
				
					
						
							
							
								 
						
							
								f29bdaf96a 
								
							 
						 
						
							
							
								
								Override clone s3 bucket path ( #487 )  
							
							... 
							
							
							
							Override clone s3 bucket path
Add possibility to use a custom s3 bucket path for cloning a cluster
from an arbitrary bucket (e.g. from another k8s cluster). For that
a new config options is introduced `s3_wal_path`, that should point
to a location that spilo would understand. 
							
						 
						
							2019-05-10 12:52:42 +02:00  
				
					
						
							
							
								 
						
							
								0fbfbb23bb 
								
							 
						 
						
							
							
								
								Use /status subresource instead of plain manifest field ( #534 )  
							
							... 
							
							
							
							* turns PostgresStatus type into a struct with field PostgresClusterStatus
* setStatus patch target is now /status subresource
* unmarshalling PostgresStatus takes care of previous status field convention
* new simple bool functions status.Running(), status.Creating() 
							
						 
						
							2019-05-07 12:01:45 +02:00  
				
					
						
							
							
								 
						
							
								15ec6a920d 
								
							 
						 
						
							
							
								
								Config option to allow Spilo container to run non-privileged. ( #525 )  
							
							... 
							
							
							
							* Config option to allow Spilo container to run non-privileged.
Runs non-privileged by default.
Fixes  #395 
* add spilo_privileged to manifests/configmap.yaml
* add spilo_privileged to helm chart's values.yaml 
							
						 
						
							2019-04-03 17:13:39 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								db72d82f14 
								
							 
						 
						
							
							
								
								gofmt and golint fixes ( #506 )  
							
							... 
							
							
							
							* fix gofmt and golint issues 
							
						 
						
							2019-03-04 13:13:55 +01:00  
				
					
						
							
							
								 
						
							
								587d9091e7 
								
							 
						 
						
							
							
								
								Set HUMAN_ROLE Spilo env var ( #409 )  
							
							... 
							
							
							
							* Set HUMAN_ROLE Spilo env var 
							
						 
						
							2019-02-27 13:40:42 +01:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								26a7fdfa9f 
								
							 
						 
						
							
							
								
								Add Pod Anti Affinity ( #489 )  
							
							... 
							
							
							
							* Add Pod Anti Affinity 
							
						 
						
							2019-02-21 16:37:03 +01:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								ed6acc1178 
								
							 
						 
						
							
							
								
								Correctly report success in .status on Update ( #469 )  
							
							
							
						 
						
							2019-01-31 13:09:17 +01:00  
				
					
						
							
							
								 
						
							
								3544cc90fa 
								
							 
						 
						
							
							
								
								Allow specifying init_containers in Postgres CRD ( #445 )  
							
							... 
							
							
							
							* Add support for init_containers 
							
						 
						
							2019-01-29 11:08:44 +01:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								8330905ce7 
								
							 
						 
						
							
							
								
								Don't panic if Service for the role was not found ( #451 )  
							
							
							
						 
						
							2019-01-18 13:38:47 +01:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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