Commit Graph
158 Commits
Author SHA1 Message Date
Cédric de Saint Martin a4aee7c359 [stable/postgresql] Add optional PrometheusRule for metrics. (#19050)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2019-11-22 02:01:29 -08:00
Cédric de Saint Martin 9830a92d53 [stable/postgresql] Add dedicated tmpfs for /dev/shm. (#19025)
* [stable/postgresql] Add dedicated tmpsfs for /dev/shm.

Start a database pod without limitations on shm memory. By default docker
limit  to  (see e.g. the [docker
issue](https://github.com/docker-library/postgres/issues/416), which could be
not enough if PostgreSQL uses parallel workers heavily. If this option is
present and value is , to the target database pod will be mounted a new
tmpfs volume to remove this limitation.

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

* [stable/postgresql] SHM: Second version after review + improvements.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2019-11-21 05:07:29 -08:00
Rostyslav Sotnychenko 2a50c3e858 [stable/postgresql] Add support for extra init containers (#18914)
Signed-off-by: Rostyslav Sotnychenko <me@sota.sh>
2019-11-19 03:29:42 -08:00
Cédric de Saint Martin 7a2dad2d27 [stable/postgresql] Add back custom metrics. (#18924)
Solves https://github.com/helm/charts/issues/15798

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2019-11-18 04:39:42 -08:00
Sameer Naik d0699a3ba8 [stable/postgresql] adds postgresqlPostgresPassword chart parameter (#18901)
`postgresqlPostgresPassword` enables users to set a password for the `postgres` user when `postgresqlUsername` is not `postgres`

Signed-off-by: Sameer Naik <sameersbn@vmware.com>
2019-11-18 01:35:41 -08:00
Rafael Ríos Saavedra 903dbd4087 [stable/postgresql] Add ldap support to postgresql chart (#18813)
* Add ldap support for postgres chart

Signed-off-by: Rafael Rios Saavedra <rafael.rios.saavedra@gmail.com>

* Adds validation to ldap configuration method. Fix minor details.

Signed-off-by: Rafael Rios Saavedra <rafael.rios.saavedra@gmail.com>

* Bump minor version. Fix simultaneous ldap.url and ldap.server checking

Signed-off-by: Rafael Rios Saavedra <rafael.rios.saavedra@gmail.com>

* Fix condition in ldap.url and ldap.server testing

Signed-off-by: Rafael Rios Saavedra <rafael.rios.saavedra@gmail.com>
2019-11-12 07:38:07 -08:00
Sameer Naik 205db45e2d [stable/postgresql] bump major version (#18707)
Helm performs a lookup for the object based on its group (apps), version (v1), and kind (Deployment). Also known as its GroupVersionKind, or GVK. Changing the GVK is considered a compatibility breaker from Kubernetes' point of view, so you cannot "upgrade" those objects to the new GVK in-place. Earlier versions of Helm 3 did not perform the lookup correctly which has since been fixed to match the spec.

In https://github.com/helm/charts/pull/17281 the `apiVersion` of the statefulset resources was updated to `apps/v1` in tune with the api's deprecated, resulting in compatibility breakage.

This major version bump signifies this change.

Signed-off-by: Sameer Naik <sameersbn@vmware.com>
2019-11-08 06:16:13 -08:00
Miguel Ángel Cabrera Miñagorri a40a25f3b9 [stable/postgresql] Add support to change the user and password for the sql init scripts (#18550)
Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
2019-11-08 06:04:14 -08:00
Grachev Mikhail 8a5a143bad [bitnami/postgresql] Fix error when running init-container (#18447)
Error: failed to create containerd task: OCI runtime create failed: container_linux.go:337: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
Signed-off-by: Mikhail Grachev <work@mgrachev.com>
2019-11-01 01:23:24 -07:00
Alejandro Moreno 612faf26ad Define postgresql.tplValue (#18422)
Signed-off-by: Alejandro Moreno <amoreno@bitnami.com>
2019-10-29 06:58:44 -07:00
Vincent Behar 62c1d6b17f [stable/postgresql] evaluate the service's annotations as a template (#18323)
update the service template to evaluate the annotations as a template,
to allow people to use dynamic values in annotations key or values.

Signed-off-by: Vincent Behar <v.behar@free.fr>
2019-10-25 00:39:40 -07:00
Juan Ariza Toledano 8ff0d23db1 [stable/postgresql] Fix warning with 'extraEnv' parameter and lint chart (#18174)
Signed-off-by: juan131 <juan@bitnami.com>
2019-10-24 00:47:08 -07:00
Vincent Behar 0026a6c0f3 [stable/postgresql] add master/slave labels/annotations (#17823)
Add support for custom labels and annotations on the master & slaves statefulset

Signed-off-by: Vincent Behar <v.behar@free.fr>
2019-10-17 01:46:39 -07:00
Christoph Obexer b8b063784b [stable/postgresql] Fix rediness probe for bitnami images (#17489)
Signed-off-by: Christoph Obexer <cobexer@gmail.com>
2019-09-30 06:53:40 -07:00
Juan Ariza Toledano 600bf5e073 [stable/postgresql] Update sts apiVersion to 'apps/v1' - Mandatory for K8s 1.16 (#17281)
Signed-off-by: juan131 <juan@bitnami.com>
2019-09-20 08:40:59 -07:00
Hugo Cortes 6c30152fd7 fix(notes): display secretName template generated by helper (#17271)
Signed-off-by: Hugo Cortes <contact@hugocortes.dev>
2019-09-20 00:30:59 -07:00
Cédric de Saint Martin 16bea01a62 [stable/postgresql] initContainer: also chown mount point itself. (#17154)
Avoids error where start script can't touch .initialized* files.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2019-09-16 23:58:24 -07:00
Alejandro Moreno 3dfac1321f Fix 'storageClass' macros (#16553)
Signed-off-by: Alejandro Moreno <amoreno@bitnami.com>
2019-08-22 04:50:32 -07:00
Miguel Ángel Cabrera Miñagorri cd591d5908 [stable/postgresql] Refactor StorageClass template to support old Helm versions (#16491)
Signed-off-by: miguelaeh <macabrera@bitnami.com>
2019-08-21 09:30:55 -07:00
Miguel Ángel Cabrera Miñagorri b5ca2eddeb [stable/postgresql] Add global StorageClass to postgresql (#16423)
Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
2019-08-20 05:35:09 -07:00
Tomas Pizarro 43dbe0d27b [stable/postgresql] Avoid init scripts to execute in every restart (#15796)
* [stable/postgresql] Avoid init scripts to execute in every restart after changing volume mount point

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

* [stable/postgresql] Update components versions

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

* Bump chart version

Signed-off-by: tompizmor <tompizmor@gmail.com>
2019-07-24 04:02:15 -07:00
Carlos Rodríguez Hernández 0a3f6842ac [stable/postgresql] Implement again "Standardize 'fullname' and 'name' macros" (#15643)
(#15427)" (#15598)"

This reverts commit 68d025a636.
Implement #15427 bumping a major version after #15598
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-07-18 06:34:16 -07:00
Carlos Rodríguez Hernández 68d025a636 Revert "[stable/postgresql] Standardize 'fullname' and 'name' macros (#15427)" (#15598)
This reverts commit 4dbd66a090.

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-07-17 07:27:00 -07:00
Juan Ariza Toledano 4dbd66a090 [stable/postgresql] Standardize 'fullname' and 'name' macros (#15427)
Signed-off-by: juan131 <juan@bitnami.com>
2019-07-11 07:21:09 -07:00
Christian Vervoorts cb794f4634 [stable/postgresql] Ignore lost+found in the mountPath directory (#14684)
* Ignore lost+found in the mountPath directory

Signed-off-by: Christian Vervoorts <christian.vervoorts@dg-i.net>

* Bump Chart Version

Signed-off-by: Christian Vervoorts <christian.vervoorts@dg-i.net>
2019-06-12 11:56:17 -07:00
Nuwan Goonasekera 691a770df5 [stable/postgresql] Allow templating of extra env vars (#14664)
* Allow templating of extra env vars

Signed-off-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>

* Bump chart version to fix lint error

Signed-off-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>
2019-06-11 00:46:17 -07:00
aerotog 14e65cc8d1 [stable/postgresql] Fix data permission error on pod restart (#14538) (#14540)
The command 'mkdir -p' has no effect if the directory already exists. To ensure the init container sets the mode for an existing data directory, we call 'chmod 700' separately.

Signed-off-by: Tim Guenthner <aerotog@gmail.com>
2019-06-06 00:46:11 -07:00
Tomas Pizarro 60d89aa165 [stable/postgresql] Make readiness probe compatible for most postgresql images (#14516)
* Make readiness probe compatible for most postgresql images

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

* Simplify logic for generating readiness probe command

Signed-off-by: tompizmor <tompizmor@gmail.com>
2019-06-05 06:53:54 -07:00
Sébastien Prud'homme 555cd7cbd6 [stable/postgresql] servicemonitor resource for prometheus operator (#14369)
* [stable/postgresql] servicemonitor resource for prometheus operator

Signed-off-by: Sébastien Prud'homme <sebastien.prudhomme@gmail.com>

* Add some new parameters for ServiceMonitor

Signed-off-by: Sébastien Prud'homme <sebastien.prudhomme@gmail.com>
2019-06-04 00:57:01 -07:00
Tomas Pizarro 0fff0f9e82 [stable/postgresql] Improve readiness probe (#14370)
* [stable/postgresql] Improve readiness probe

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

* Bump chart version

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

* update flag path for readiness probe

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

* Use proper postgres tag

Signed-off-by: tompizmor <tompizmor@gmail.com>
2019-06-03 08:10:26 -07:00
Juan Ariza Toledano cdc331a505 [stable/postgresql] Ensure intContainer creates the data directory. (#14401)
* [stable/postgresql] Ensure intContainer creates the data directory.

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

* Update PostgreSQL image tag to '11.3.0-debian-9-r26'

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

* Update PostgreSQL image tag to '11.3.0-debian-9-r26' on 'values-production.yaml'

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

* Update PostgreSQL image tag to '11.3.0-debian-9-r27'

Signed-off-by: juan131 <juan@bitnami.com>
2019-06-03 05:54:18 -07:00
Balint Molnar b74991af78 Add extraVolumeMount and Volume to Postgres Master and Slave (#14280)
Signed-off-by: Balint Molnar <balintmolnar91@gmail.com>
2019-05-31 03:24:29 -07:00
satchpx 3b934d8366 updates to support alternate k8s scheduler (#14363)
Signed-off-by: Sathya Balakrishnan <sathya@portworx.com>
2019-05-31 01:14:25 -07:00
Carlos Rodríguez Hernández be5dbfd6e0 [stable/postgresql] Change regex looking for rolling tags (#14265)
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-05-29 08:53:22 -07:00
Carlos Rodríguez Hernández e4706433f6 [stable/postgresql] Use immutable tags (#14199)
* Bump chart version

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

* [stable/postgresql] Use immutable tags

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-05-28 13:55:22 -07:00
Tomas Pizarro b283409641 [stable/postgresql] Allow changing port for postgresql chart (#14112)
Signed-off-by: tompizmor <tompizmor@gmail.com>
2019-05-24 00:42:18 -07:00
Benoît Knecht 81ccafb9a1 [stable/postgresql] Fix NetworkPolicy in replicated mode (#13863)
* stable/postgresql: Fix NetworkPolicy in replicated mode

With replication enabled and a network policy that prevents external
communication, i.e.

```yaml
replication:
  enabled: true
networkPolicy:
  enabled: true
  allowExternal: false
```

the slave pods are not allowed to connect to the master, which causes
them to enter into a crash loop.

This commit expands the ingress policy to allow communication from the
slaves to the master on port 5432.

Signed-off-by: Benoît Knecht <benoit.knecht@fsfe.org>

* stable/postgresql: Bump chart version number to 4.2.2

Signed-off-by: Benoît Knecht <benoit.knecht@fsfe.org>
2019-05-17 01:16:07 -07:00
Anastas Dancha 15ec005a8b [stable/postgresql] excluding ".snapshot" in chown during init (#13754)
* excluding ".snapshot" in chown during init

  in some environment, where PVs are NFS volumes with `.shapshot` directories,
  such as the case with NetApps, `chown -R` would fail during execution of
  initContainer command
  to avoid failure, `.snapshot` shouldbe excluded from `chown -R`

Signed-off-by: Anastas Dancha <anapsix@random.io>

* same in less lines

Signed-off-by: Anastas Dancha <anapsix@random.io>

* using find statement w/ xargs for error handling

Signed-off-by: Anastas Dancha <anapsix@random.io>
2019-05-15 09:00:43 -07:00
Dennis Effing be19b9dc3f [stable/postgresql] Add service account support (#13751)
* Add service account support

Service account utilization is optional and not activated by default.

Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>

* Remove trailing spaces

Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>

* Add missing documentation on serviceAccount.name property

Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>

* Add service account properties to production values

Signed-off-by: Dennis Effing <dennis.effing@codecentric.de>
2019-05-15 03:22:18 -07:00
Nuwan Goonasekera 12387212ed [stable/postgresql] Use tpl so release name can be used in config maps (#13705)
* Use tpl so release name can be used in config maps

This runs the config map name through tpl so that templating can be
used with config map and secret names in postgres. Otherwise, it limits
postgres to a single release when using a custom config map name.
This is a workaround for issue: https://github.com/helm/helm/issues/2492
and follows similar solutions used elsewhere:
https://github.com/helm/charts/issues/10342

Signed-off-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>

* Bump chart version

Signed-off-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>

* Update docs to indicate that the value is evaluated as a template

Signed-off-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>
2019-05-13 23:53:10 -07:00
Juan Ariza Toledano c581d1c560 [stable/postgresql] Set the right env. variable to enable debug (#13682)
Signed-off-by: juan131 <juan@bitnami.com>
2019-05-10 07:02:00 -07:00
Juan Ariza Toledano d6356ccfe8 [stable/postgresql] Fix 'mountPath' for password files. (#13653)
Signed-off-by: juan131 <juan@bitnami.com>
2019-05-09 07:48:55 -07:00
Javier J. Salmerón-García b94e9f2b99 [stable/postgresql] Adapt to new bitnami postgresql bash container (#13547)
* [stable/postgresql] Adapt to new bitnami postgresql bash container

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

* Update readme

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

* Change postgresqlDataDir

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2019-05-09 01:10:47 -07:00
Marcin Klimus 144589a988 [stable/postgresql]: Adjust PGDATA to master value (#13470)
* Adjust PGDATA to master value

Signed-off-by: Marcin Klimus <marcin.klimus@openx.com>

* bump-up version

Signed-off-by: Marcin Klimus <marcin.klimus@openx.com>

* correct variable name

Signed-off-by: Marcin Klimus <marcin.klimus@openx.com>
2019-05-03 06:32:19 -07:00
Travis Cline a626b450b9 [stable/postgresql] explicitly use ipv4 for probes (#13073)
* [stable/postgresql] explicitly use ipv4 for probes

Signed-off-by: Travis Cline <travis.cline@gmail.com>

* [stable/postgresql] bump chart version

Signed-off-by: Travis Cline <travis.cline@gmail.com>
2019-04-18 01:34:08 -07:00
jmvizcainoio a86129ae16 [stable/postgresql ] Load Balancer sources (#13059)
* Load Balancer sources

Signed-off-by: Juan Manuel <juanmanuel.vizcaino@iomed.es>

* remove line

Signed-off-by: Juan Manuel <juanmanuel.vizcaino@iomed.es>

* Check if type is LoadBalancer
Signed-off-by: Juan Manuel <juanmanuel.vizcaino@iomed.es>

Signed-off-by: Juan Manuel <juanmanuel.vizcaino@iomed.es>

* add blank lines

Signed-off-by: Juan Manuel <juanmanuel.vizcaino@iomed.es>
2019-04-16 04:31:07 -07:00
obeyler d0f5fc85be [stable/Postgresql] add runAsUser inside security policy (#12854)
* Update statefulset.yaml

Signed-off-by: olivier beyler <olivier.beyler@orange.com>

* Update Chart.yaml

Signed-off-by: olivier beyler <olivier.beyler@orange.com>

* Update statefulset.yaml

Signed-off-by: olivier beyler <olivier.beyler@orange.com>

* Revert "Update statefulset.yaml"

This reverts commit 8ad2230884dab22082eeccbb367816fe51d3f46b.

Signed-off-by: olivier beyler <olivier.beyler@orange.com>

* Update statefulset.yaml

Signed-off-by: obeyler <olivier.beyler@orange.com>

* fixup

Signed-off-by: olivier beyler <olivier.beyler@orange.com>

* fixup

Signed-off-by: olivier beyler <olivier.beyler@orange.com>

* fixup

Signed-off-by: olivier beyler <olivier.beyler@orange.com>
2019-04-11 06:14:13 -07:00
Juan Ariza Toledano 81771e449a [stable/postgresql] Add support to specify the volumeMounts' subPath (#12750)
Signed-off-by: juan131 <juan@bitnami.com>
2019-04-02 08:43:20 -07:00
Javier J. Salmerón-García 7ca2c9a187 [stable/postgresql] Allow connection details to be set as global (#11360)
* [stable/postgresql] Allow connection details to be set as global

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

* Add global by default

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2019-03-20 09:10:59 -07:00
Michael Beaumont f4a1ee643c [stable/postgresql] Allow a template for persistence.existingClaim (#12313)
* [stable/postgresql] Allow a template for persistence.existingClaim

Signed-off-by: Michael Beaumont <mjboamail@gmail.com>

* [stable/postgresql] Update values-production for persistence.existingClaim

Signed-off-by: Michael Beaumont <mjboamail@gmail.com>
2019-03-19 08:40:30 -07:00