Commit Graph
114 Commits
Author SHA1 Message Date
Tomas Pizarro c0943dbcd6 [stable/postgresql] Fix syntax error when persistence is disabled and replication enabled (#10428)
Signed-off-by: tompizmor <tompizmor@gmail.com>
2019-01-07 23:52:51 -08:00
Ivan Shapovalov f759be60d9 [stable/postgresql] Fix initdbScripts; add postgresqlExtendedConf to pass appended configuration via values (#10294)
* k8s: chart: postgresql: refactor initialization-configmap

Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>

* k8s: chart: postgresql: pass extended configuration via "postgresqlExtendedConf" values

Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>

* k8s: chart: postgresql: bump minor version

Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
2019-01-03 23:33:27 -08:00
guptaarvindk abcae04627 added support for specific clusterIp and headless services. (#8314)
Signed-off-by: Arvind Gupta <guptaarvindk@gmail.com>
2019-01-02 11:22:35 -08:00
Ben Klang 72dd8525bc Request resource limits for initContainers (#10314)
Signed-off-by: Ben Klang <bklang@powerhrg.com>
2019-01-02 08:48:50 -08:00
Tomas Pizarro 571bca3b67 [bitnami/postgresql] Fix creating initdb scripts from values.yaml (#10332)
Signed-off-by: tompizmor <tompizmor@gmail.com>
2019-01-02 02:41:38 -08:00
Javier J. Salmerón-García 162a1998a1 [stable/postgresql] Fix quote bug (#10224)
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2018-12-26 01:09:54 -08:00
Javier J. Salmerón-García c39302021b [stable/postgresql] Enable synchronous replication (#10214)
* [stable/postgresql] Enable synchronous replication

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Update values-production.yaml

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Lint

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2018-12-21 17:17:47 -08:00
Javier J. Salmerón-García 15535e4a9e [stable/postgresql] Add read-only connection to the replica slaves (#10186)
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2018-12-20 16:14:02 -08:00
Javier J. Salmerón-García d26aca3926 [stable/postgresql] Allow configmaps for configuration and initdb (#10151)
* [bitnami/postgresql] Allow configmaps for configuration and initdb

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Change conf.d mountpoint

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Bump version

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Bump minor version

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2018-12-20 09:13:03 -08:00
Juan Ariza Toledano d05ba24b0a [stable/postgresql] Allow enabling/disabling volume-permissions Init container (#10130)
* [stable/postgresql] Allow enabling/disabling volume-permissions Init container

Signed-off-by: juan131 <juan@bitnami.com>

* Simpler condition to enable initContainers

Signed-off-by: juan131 <juan@bitnami.com>

* Rebase from master and bump version

Signed-off-by: juan131 <juan@bitnami.com>
2018-12-20 00:29:38 -08:00
Carlos Rodríguez Hernández 4a4875755d [stable/postgresql] Allows overwrite default config file using include_dir (#10133)
* [stable/postgresql] Allows overwrite default config file using include_dir

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Remove duplicated if statement

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Change README wording

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Bump major version

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2018-12-19 07:58:46 -08:00
Juan Ariza Toledano 7030efc7b3 [stable/postgresql] Allow including gzip files as initdb scripts (#10124)
* [stable/postgresql] Allow including gzip files as initdb scripts

Signed-off-by: juan131 <juan@bitnami.com>

* Increasing Prerequisites on README.md

Signed-off-by: juan131 <juan@bitnami.com>

* Only create cm when there are init scripts

Signed-off-by: juan131 <juan@bitnami.com>

* Only use init cm when there are init scripts

Signed-off-by: juan131 <juan@bitnami.com>

* minor fixes

Signed-off-by: juan131 <juan@bitnami.com>
2018-12-19 03:09:47 -08:00
Javier J. Salmerón-García a22d36543c [stable/postgresql] Allow mounting secrets as files (#10090)
* [stable/postgresql] Allow mounting secrets as files

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Add mounting logic to the metrics container

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Lint

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2018-12-18 08:00:18 -08:00
Axel Bock fab48affcd [stable/postgresql] fix broken usage of existing PVC (#9832) (#9834)
* fix broken behavior of persistence.existingClaim (#9832)

Signed-off-by: Axel Bock <mr.axel.bock@gmail.com>

* bump version to 3.1.4

Signed-off-by: Axel Bock <mr.axel.bock@gmail.com>

* add emptyDir mount for disbaled persistency

Signed-off-by: Axel Bock <mr.axel.bock@gmail.com>

* fix duplicate updateStrategy key

Signed-off-by: Axel Bock <mr.axel.bock@gmail.com>
2018-12-18 00:28:01 -08:00
chris-malloy-mri 103455d334 [stable/postgresql] When persistence is disabled the empty volume gets added in the wrong spot (#9952)
* When persistence is disabled the empty volume gets added in the wrong spot.

It ends up generating yaml like this:
  updateStrategy:
    type: RollingUpdate
      - name: data
        emptyDir: {}

Signed-off-by: Chris Malloy <chris.malloy@mathresources.com>

* Bumped version.

Signed-off-by: Chris Malloy <chris.malloy@mathresources.com>
2018-12-13 06:42:09 -08:00
Gabriel Nicolas Avellaneda f7831da8ce Removed new line from command line to easy copy and pasting command into the terminal (#9798)
Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>

Do not create a Deployment for the psql client to test connectivity with PostgreSQL

Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>

Fixed command line for test client to add namespace to be able to make connection to the deployed PostgreSQL

Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>

Bump chart version

Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>
2018-12-13 05:50:24 -08:00
Stephen Moloney a95f551b7b [stable/postgresql] Remove extra lines in secrets.yaml (#9917)
What does this commit/MR/PR do?

- Remove extra lines in secrets.yaml

Why is this commit/MR/PR needed?

- There should be one key/pair per line

Signed-off-by: Stephen Moloney <stephen@stephenmoloney.com>
2018-12-12 02:35:28 -08:00
Cédric de Saint Martin c8330f2dbc [stable/postgresql] Add updateStrategy parameter. (#9780)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-12-10 01:02:28 -08:00
Tomas Pizarro f68259033d [stable/postgresql] Support different affinities, nodeSelectors and tolerations for master & slaves (#9646)
* [stable/postgresql] Support different affinities for master & slaves

Signed-off-by: tompizmor <tompizmor@gmail.com>

* Add note to README and obey fullnameOverride

Signed-off-by: tompizmor <tompizmor@gmail.com>
2018-12-07 06:41:04 -08:00
Gabriel Nicolas Avellaneda 41a5a9d9b3 Only pass POSTGRESQL_DATABASE if it is set (#9786)
Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>

Bump chart version

Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>
2018-12-07 04:35:30 -08:00
Gabriel Nicolas Avellaneda ce95184419 Fix broken table in README.md for PostgreSQL chart (#9775)
* Fix broken table in README.md for PostgreSQL chart

Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>

* Bump chart version

Signed-off-by: Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>
2018-12-06 07:51:38 -08:00
Phillip Kast 0ab8b4eec7 Add existingSecret configuration key to postgresql chart (#9729)
* Add existingSecret configuration key to postgresql chart

Signed-off-by: Phillip Kast <phil@yearofcode.com>

* Use existingSecret in new metrics sidecar

Signed-off-by: Phillip Kast <phil@yearofcode.com>

* Bump chart version to 2.7.8

Signed-off-by: Phillip Kast <phil@yearofcode.com>
2018-12-05 02:03:32 -08:00
Cédric de Saint Martin 6d29127913 [stable/postgresql] Merge metrics into master statefulset as sidecar. (#9574)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-12-04 23:42:32 -08:00
Juan Ariza Toledano f6c0514dc0 [stable/postgresql] Add possibility to use existing PVC (#9652)
* Fix typo

Signed-off-by: juan131 <juan@bitnami.com>

* [stable/postgresql] Add possibility to use existing PVC

Signed-off-by: juan131 <juan@bitnami.com>
2018-11-30 07:19:03 -08:00
Ben Hagen 728d045380 Do not trim white space (#9535)
Signed-off-by: Ben Hagen <c.ben.hagen@gmail.com>
2018-11-26 23:59:54 -08:00
Ben Hagen bf5e71db51 [stable/postgresql] Fix quotation marks (#9534)
Signed-off-by: Ben Hagen <c.ben.hagen@gmail.com>
2018-11-25 10:09:30 -08:00
Tomas Pizarro 67be67f0e3 [stable/postgresql] Fix bug in exporter config when creating custom db (#9480)
* [stable/postgresql] Fix bug in exporter config when creating custom database

Signed-off-by: tompizmor <tompizmor@gmail.com>

* Require database if metrics is enabled

Signed-off-by: tompizmor <tompizmor@gmail.com>
2018-11-22 07:21:21 -08:00
Johnny You f66e3acc1c remove duplicated configuration in README.md (#9433)
Signed-off-by: LittleWhiteYA <f46284628@gmail.com>
2018-11-21 01:40:42 -08:00
Joao C Costa 47ba7febb7 [stable/postgresql] improving consistency between master and slave sts (#9272)
* Added debugging flags to master node

Signed-off-by: Joao C Costa <joaocc-dev@live.com>

* Annotation style consistent with master

Signed-off-by: Joao C Costa <joaocc-dev@live.com>

* Added terminationGracePeriod spec to slave nodes

Signed-off-by: Joao C Costa <joaocc-dev@live.com>

* Bump chart version

Signed-off-by: Joao C Costa <joaocc-dev@live.com>

* fixing env vars value - helm requires them to be strings

Signed-off-by: Joao C Costa <joaocc-dev@live.com>

* [stable/postgresql] bump chart version

Signed-off-by: Joao C Costa <joaocc-dev@live.com>
2018-11-20 06:48:12 -08:00
Zerotul 2c1bd62343 [stable/postgres] add override fullname (#8812)
Signed-off-by: Konstantin Chipunov <manychip@gmail.com>
2018-11-16 00:24:32 -08:00
Cédric de Saint Martin 9020001c5b [stable/postgresql] Add ability to give postgresql, pg_hba configuration or initdb scripts from parameters. (#9117)
* [stable/postgresql] Add ability to give postgresql or pg_hba configuration from parameter.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>

* [stable/postgresql] Add ability to give initdb scripts from parameter.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-11-13 08:10:14 -08:00
Cédric de Saint Martin ecb09dc949 [stable/postgresql] Fix invalid StatefulSet volumeClaimTemplates annotations if empty. (#9115)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-11-13 07:56:35 -08:00
Cédric de Saint Martin f67cff610a [stable/postgresql] Add affinity parameter. (#9114)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-11-13 07:20:08 -08:00
Cédric de Saint Martin 032a3d4fc2 [stable/postgresql] Fix resources parameter and document it. (#9120)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-11-10 16:41:53 -08:00
Bitnami Bot 942f633804 [stable/postgresql] Release 2.3.4 (#9162)
* postgresql: update to `10.6.0`

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* postgresql: bump chart appVersion to `10.6.0`

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* postgresql: bump chart version to `2.3.4`

Signed-off-by: Bitnami Containers <containers@bitnami.com>
2018-11-10 10:31:05 -08:00
Cédric de Saint Martin 27e0137cde [stable/postgresql] Fix upgradability of metrics deployment. (#9119)
See https://github.com/helm/charts/issues/7726.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-11-08 09:20:18 -08:00
Tomas Pizarro cf21ec0bda [stable/postgresql] Refactor init-container to support more scenarios (#9104)
Signed-off-by: tompizmor <tompizmor@gmail.com>
2018-11-08 06:20:49 -08:00
Tomas Pizarro 1675127f0a [stable/postgresql] Specify user for the initContainer (#9068)
Signed-off-by: tompizmor <tompizmor@gmail.com>
2018-11-07 02:21:08 -08:00
Tomas Pizarro 258376818f [stable/postgresql] Fix chart when persistence is enabled (#9002)
Signed-off-by: tompizmor <tompizmor@gmail.com>
2018-11-05 07:57:49 -08:00
Carlos Rodríguez Hernández 381a36aff2 Revert "[stable/postgresql] Release 2.2.3 (#8856)" (#8881)
This reverts commit b772e0abc0.

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2018-10-30 04:25:27 -07:00
Bitnami Bot b772e0abc0 [stable/postgresql] Release 2.2.3 (#8856)
* postgresql: update to `11.0.0`

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* postgresql: bump chart appVersion to `11.0.0`

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* postgresql: bump chart version to `2.2.3`

Signed-off-by: Bitnami Containers <containers@bitnami.com>
2018-10-29 17:11:04 -07:00
Cédric de Saint Martin 24699be824 [stable/postgresql] Add OWNER file, add desaintmartin as maintainer. (#7447)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-10-29 09:25:25 -07:00
Tomas Pizarro 17f91328e4 [stable/postgresql] Fix NOTES.txt render error when service type is LB (#8835)
* [stable/postgresql] Fix NOTES.txt render error when service type is LoadBalancer

Signed-off-by: tompizmor <tompizmor@gmail.com>

* Delete wrong line

Signed-off-by: tompizmor <tompizmor@gmail.com>
2018-10-29 04:44:38 -07:00
Juan Ariza Toledano 8bd8912453 [stable/postgreslq] Improve service configuration (#8691)
* Fix typo

Signed-off-by: juan131 <juan@bitnami.com>

* [stable/postgreslq] Improve service configuration

Signed-off-by: juan131 <juan@bitnami.com>

* Fix lint issues

Signed-off-by: juan131 <juan@bitnami.com>

* Small corrections on README.md file

Signed-off-by: juan131 <juan@bitnami.com>

* Small corrections on README.md file - ii

Signed-off-by: juan131 <juan@bitnami.com>
2018-10-24 06:12:12 -07:00
Carlos Rodríguez Hernández 898ee9a96f [stable/postgresql] Add global registry option and remove some quotes (#8684)
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2018-10-24 01:52:08 -07:00
Carlos Rodríguez Hernández 7f1e47c5a8 [stable/postgresql] PostgreSQL maintenance proposal (#8004)
* Adopt postgresql chart

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Fix Chart.yaml

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Add metrics and NetworkPolicy to the README

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Remove previous deployment.yaml

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Update NOTES.txt

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Add OWNERS file

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Add kubeapps text to charts READMEs

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Appy different suggestions

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Add terminationGracePeriodSeconds

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Add upgrade steps to README

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Add how to connect when the networkpolicy is enabled to NOTES.txt

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Allow using pg_hba.conf via configmap

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Update description ingluding pg_hba.conf

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Fix metrics deployment

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Rebase latest changes

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Remove distro tags

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Add OWNERs to .helmignore

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2018-10-24 00:48:08 -07:00
Boky 65403e85b0 Added option for custom environment variables for PostgreSQL. (#7589)
This commit enables the user to specify additional environment
variables in the postgres chart.

This is especially important for custom Postgres images which might
have different environment variables for different options or for
enabling additional features.

Furthermore versions have been updated:
- Chart version has been set to 1.0.0, as this is a stable chart

Signed-off-by: Bojan Čekrlić <bojan@cekrlic.com>
2018-10-16 07:57:04 -07:00
Cédric de Saint Martin 68ec4ff1a2 [stable/postgresql] Add terminationGracePeriodSeconds parameter. (#8165)
30 seconds by default might not be enough in some cases.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-10-08 13:00:58 -07:00
Igor Zibarev b5dd29867c [stable/postgresql] Fix metrics volume arguments (#7987)
"-extend.query-path" is invalid argument to postgres_exporter since
0.4.x version due to cli library update (ref:
https://github.com/wrouesnel/postgres_exporter/issues/147)

Currently, as a result of invalid argument, metrics container fails
to start.

This commit fixes the issue by replacing broken command line argument
with the corresponding environment variable, as they are more consistent.

Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
2018-10-06 13:02:51 -07:00
Igor Zibarev 46955b7e19 [stable/postgresql] Fix custom metrics volume (#7294)
Currently, custom metrics for "metrics" image of postgresql pod are
broken. This is because the volume is specified incorrectly. Thus, the
deployment ends up creating `emptyDir: {}` volume instead of `configMap`
one.

This commit fixes it.

Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
2018-09-24 12:44:03 -07:00