Commit Graph

116 Commits

Author SHA1 Message Date
Sylvain Pasche
b92c842d9e [bitnami/postgresql] Fix path to entrypoint.sh (#10056)
Signed-off-by: Sylvain Pasche <sylvain.pasche@gmail.com>

Co-authored-by: Javier J. Salmerón-García <jsalmeron@vmware.com>
2022-05-16 11:59:12 +02:00
David Gomez
905260a6f7 Fix error 'Error: ConfigMap in version v1 cannot be handled as a ConfigMap' (#10222)
Signed-off-by: David Gomez <dgomezleon@vmware.com>
2022-05-16 10:04:16 +02:00
Anouar Jammali
50bcacc7d5 [bitnami/postgresql] Add metrics support to read replica (#9881)
* Add metrics support to read replica

Signed-off-by: Anouar Jammali <jammali.anouar@gmail.com>

* add custom-metrics volume

Signed-off-by: Anouar Jammali <jammali.anouar@gmail.com>

* feedback

Signed-off-by: Anouar Jammali <jammali.anouar@gmail.com>

* reviews

Signed-off-by: Anouar Jammali <jammali.anouar@gmail.com>
2022-05-13 18:34:47 +02:00
Fran Mulero
1d2fc06106 [bitnami/postgresql] Remove unnecessary quotes (#9841)
* Remove unnecessary quotes

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Bump version

Signed-off-by: Fran Mulero <fmulero@vmware.com>
2022-04-26 10:40:04 +02:00
Dennis Urban
515833f739 [bitnami/postgresql] Add quote to namespace (#9691)
* quote namespaces on postgresql chart

Signed-off-by: Dennis Urban <dennis.urban@flipapp.de>

Co-authored-by: Dennis Urban <dennis.urban@flipapp.de>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
Co-authored-by: Fran Mulero <fmulero@vmware.com>
2022-04-07 18:56:02 +02:00
Gerald Pape
b87abf3190 Add missing quote in postgresql RBAC Role manifest (#9651)
Signed-off-by: Gerald Pape <mail@geraldpape.io>
2022-04-01 10:52:39 +02:00
Alexander Evseev
dcc33b4450 [bitnami/postgresql] Quote POSTGRESQL_INITSCRIPTS_PASSWORD (#9453)
* Quote POSTGRESQL_INITSCRIPTS_PASSWORD

... to be able to use numeric initdb.password

Fixes #9445

Signed-off-by: Alexander Evseev <aevseev@gmail.com>

* [bitnami/postgresql] Update components versions

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

Co-authored-by: Bitnami Containers <containers@bitnami.com>
2022-03-18 10:42:05 +01:00
Gaëtan Lehmann
d7fb42751a fix missing namespace in network policies (#9369) 2022-03-10 19:57:16 +01:00
Javier J. Salmerón-García
f547c0a039 [bitnami/postgresql] docs: 📝 Add note about using the container entrypoint (#9160)
Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
2022-02-23 11:20:23 +01:00
Hayden James
2f7d7dce79 Add hostIPC option for PostgreSQL StatefulSets (#9148)
Signed-off-by: Hayden James <hayden.james@gmail.com>
2022-02-22 14:07:46 +01:00
Hayden James
a71f52577e Add hostNetwork option for PostgreSQL StatefulSets (#9064)
Signed-off-by: Hayden James <hayden.james@gmail.com>
2022-02-21 17:53:23 +01:00
Miguel Ruiz
49fcd78c73 [bitnami/postgresql] Add flag '-r' to xargs in volumePermissions init-container (#9137)
Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
2022-02-21 17:03:06 +01:00
Jan Lauber
1b4eac8d71 [bitnami/postgresql] fix init-chmod-data resources value rendering (#9053)
* fix init-chmod-data resources value rendering

Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>

* bump chart version to 11.0.6

Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>

* change primary to volumePermissions

Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>
2022-02-17 10:46:55 +01:00
Juan Ariza Toledano
6cb95dbe16 [bitnami/postgresql] Allow enabling TLS without volume-permissions (#9016) 2022-02-17 08:50:47 +01:00
Juan Ariza Toledano
6fd13e208b [bitnami/postgresql] Fix init scripts cm reference (#9000)
Signed-off-by: juan131 <juanariza@vmware.com>
2022-02-14 12:57:11 +01:00
Marcel Märtens
c75fef792f Postgresql .Values.global.postgresql.auth.username should overwrite .Values.auth.username, (#8966) 2022-02-11 08:20:08 +01:00
Juan Ariza Toledano
86646ba729 [bitnami/postgresql] Fix PostgreSLQ password in metrics container (#8901) 2022-02-04 08:34:01 +01:00
Juan Ariza Toledano
8dc89066cf [bitnami/postgresql] Fix "postgresql.primary.extendedConfigmapName" named template (#8885)
Signed-off-by: juan131 <juanariza@vmware.com>
2022-02-03 09:24:23 +01:00
Juan Ariza Toledano
50946fdff3 [bitnami/postgresql] Chart standardization (#8827)
* [bitnami/postgresql] Chart standardization

Signed-off-by: juan131 <juanariza@vmware.com>

* [bitnami/postgresql] Update components versions

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

Co-authored-by: Bitnami Containers <containers@bitnami.com>
2022-02-02 18:42:51 +01:00
Charlie
e73f9a7fec [bitnami/postgresql]: add snapshot recovery (#8618)
* [bitnami/postgresql]: add snapshot recovery

* [bitnami/postgresql]: adjusting descriptions
2022-01-11 16:10:43 +01:00
Charlie
66f657dc3b [bitnami/postgresql]: fix unique services template render (#8581) 2022-01-07 12:20:30 +01:00
Carlos Rodríguez Hernández
8cad18aed9 [bitnami/several] Adapt templating format (#8562)
Signed-off-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com>
2022-01-05 18:10:31 +01:00
Yi Siqi
a6a4cd17ac remove password empty validation (#8534) 2021-12-31 13:36:10 +01:00
Javier J. Salmerón-García
9d6fbea190 [bitnami/postgresql] feat: Allow separate container port and service port (#8506)
* [bitnami/postgresql] feat:  Allow separate container port  and service port

* Add missing metadata
2021-12-28 10:07:12 +01:00
Yi Siqi
00fbcf1471 [bitnami/postgresql] lookup existing secrets before generating random secrets (#8320) 2021-12-22 17:36:28 +01:00
Adrian Jutrowski
73ae0077e7 Render template values inside initDbScripts (#8368) 2021-12-10 15:46:04 +01:00
bbaudelet
b547831b78 [bitnami/postgresql] Add template render for extraVolumeMounts (#8355) 2021-12-10 11:08:12 +01:00
bbaudelet
0404b1aa52 [bitnami/cassandra,etcd,influxdb,metallb,mysql,postgresql,postgresql-ha,redis] Align networkpolicy (#8336) 2021-12-09 13:01:40 +01:00
Joey Vano
e2404c63cc [bitnami/postgresql] add common labels (#7952)
* [bitnami/postgresql] add commonLabels

* [bitnami/postgresql] update chart minor version

* [bitnami/postgresql] bump version

Co-authored-by: Joseph Vano <jvano@ea.com>
2021-10-28 12:52:28 +02:00
Pablo Galego
035d926d45 [bitnami/*] Mark PodSecurityPolicy resources as deprecated (#7951)
* [bitnami/postgresql-ha] Mark PSP as deprecated

* [bitnami/postgresql] Mark PSP as deprecated

* [bitnami/redis-cluster] Mark PSP as deprecated

* [bitnami/redis] Mark PSP as deprecated

* [bitnami/thanos] Mark PSP as deprecated

* [bitnami/wavefront] Mark PSP as deprecated

* [bitnami/thanos] Update README

* [bitnami/thanos] Fix linting issues
2021-10-28 09:27:59 +02:00
bbaudelet
9a5a9f3e1c [bitnami/postgresql] Add template render for labels on primary and readreplicas (#7908)
* [bitnami/postgresql] Add template render for labels on primary and readreplicas

* [bitnami/postgresql] Add template render for labels on primary and readreplicas

* [bitnami/postgresql] bump chart versiopn
2021-10-27 11:06:07 +02:00
Carlos Rodríguez Hernández
a6751cdd33 [bitnami/several] Add chart info to NOTES.txt (#7889) 2021-10-22 16:04:39 +02:00
Carlos Rodríguez Hernández
9711a33c6e [bitnami/several] Change pullPolicy for bitnami-shell image (#7852)
* [bitnami/several] Change pullPolicy for bitnami-shell image
* Add rolling tag check in the NOTES.txt
* Fix non-standard names
* Use macro when defined
* Update Chart.yaml
* Fix typo
2021-10-19 14:38:37 +02:00
Quan TRAN
e3a8529be0 [bitnami/apache,tomcat] add extraPodSpec (#7580)
Signed-off-by: Quan TRAN <account@itscaro.me>
2021-09-29 09:44:30 +02:00
Quan TRAN
557bfe931a [bitnami/apache,postgresql,tomcat] add topologySpreadConstraints (#7598)
Signed-off-by: Quan TRAN <account@itscaro.me>
2021-09-27 10:00:47 +02:00
bbaudelet
c4c408257c [bitnami/postgresql, zookeeper] Modify extravolumes and integrate sidecars (#7555)
* Update servicemonitor.yaml

Add template render for .Values.metrics.serviceMonitor.additionalLabels

* [bitnami/postgresql]

add template render for .Values.primary.extraVolumes

* [bitnami/postgresql]

Add template render for .Values.readReplicas.extraVolumes

* [bitnami/postgresql]

Update documentation about new value evaluated as a template (primary.extraVolumes, readReplicas.extraVolumes and metrics.serviceMonitor.additionalLabels).

* [bitnami/postgres]

Bump chart version

* [bitnami/zookeeper] Update ExtraVolumes as template render, add sidecar to POD and ZOO_LOG4J_PROP environment variables

* [bitnami/postgresql] Remove information (value evaluated as a template) from README.md

* [bitnami/zookeeper] Remove information to Readme, empty space at end of the line 294 bitnami/zookeeper/templates/statefulset.yaml and move comment on values

* [bitnami/zookeeper] Bump zookeeper chart version

* [bitnbami/zookeeper] Fix missnaming and nexw line on values and Fix README

* [bitnbami/postgresql] Fix README

* [bitnbami/postgresql] Fix README

* [bitnbami/postgresql] Bump postgresql version

* Update Chart.yaml

Include new line at the end of the file

Co-authored-by: baudelet <bbaudelet.soprasteria@lfdj.com>
Co-authored-by: alvneiayu <alvaron@vmware.com>
2021-09-24 13:44:58 +02:00
Michael Kriese
553182ee27 [bitnami/postgresql] add externalTrafficPolicy to service type LoadBalancer (#7490)
* [bitnami/postgresql] add `externalTrafficPolicy` to service type `LoadBalancer`
* fix: wrong config
2021-09-16 08:56:16 +01:00
Paul Brissaud
481cc7edf7 [bitnami/postgresql] Add relabelings / metricRelabelings to ServiceMonitor (#7082)
* [bitnami/postgres]  Add relabelings / metricRelabelings to ServiceMonitor

* fix:  rename value in README

* Update bitnami/postgresql/README.md

Co-authored-by: Alejandro Moreno <alemorcuq@gmail.com>

* fix: typo in metadata

Co-authored-by: Alejandro Moreno <alemorcuq@gmail.com>
2021-08-02 12:32:35 +02:00
Carlos Rodríguez Hernández
f1344b0361 [bitnami/several] Add diagnostic mode (#7012)
* Rebase master

* Fix typo in statefulset

* Include lifecycle in the if statement

* Include metrics container

* Update README

* Rebase master

* Rebase master

* Rebase master

* Add diagnostic mode to etcd

* Add diagnostic mode to fluentd

* Add diagnostic mode to grafana-tempo

* Add diagnostic mode to haproxy

* Rebase master

* Fix values location and README

* Add diagnostic mode to the scaffolding

* Add diagnostic mode to kafka

* Add diagnostic mode to kong

* Fix linter in ejbca

* Add diagnostic mode to logstash

* Add diagnostic mode to mariadb

* Add diagnostic mode to mongodb-sharded

* Fix BITNAMI_DEBUG in galera

* Add diagnostic mode to mysql

* Add diagnostic mode to nats

* Add diagnostic mode to postgresql

* Add diagnostic mode to rabbitmq

* Add diagnostic mode to redis-cluster

* Add diagnostic mode to spark

* Add diagnostic mode to wordpress

* Add diagnostic mode to zookeeper

* Fix/Add BITNAMI_DEBUG in kong, nats, and spark

* Update READMEs

* Unify 'Please be patient...' sentence in NOTES

* Bump galera version
2021-07-27 13:10:01 +02:00
David Dieulivol
e631584fe4 [bitnami/postgresql] Add lifecycleHooks value to the postgresql chart (#7055)
* Add a preStop hook command to the postgreSQL chart

* add lifecycleHooks value for postgreSQL chart

* Fix chart version
2021-07-27 12:20:40 +02:00
deef
3d76ba751a [bitnami/postgresql] Add option to create services for each read replica (#6990)
* [bitnami/postgresql] Add option to create services for each read replica

Adds option to disable the service that connects to all read replicas.
Read-Replica unique services do not have options for LoadBalancers, Node Ports, or Setting ClusterIP.
Fixes bitnami/charts#6954

* [bitnami/postgresql] Update values.yaml comments

Added proper comments so that replication.singleService and replication.uniqueServices are bitnami-labs/readme-generator-for-helm compatible

* [bitnami/postgresql] remove unused varaibles

* [bitnami/postgresql] delete test file

* [bitnami/postgresql] bump chart version

Co-authored-by: Javier J. Salmerón-García <jsalmeron@bitnami.com>
2021-07-21 09:37:38 +02:00
Jorik Jonker
3a6043706e [bitnami/postgresql] disable automounting of service account token (#6967)
It disables the automounting of the service account token in the pod.
PostgreSQL does not need this. By disabling the automount, potential
attackers cannot access the Kubernetes API on behalf/through the pod.

This commit disables it by default, but leaves it configurable if anyone
needs to use it.

Signed-off-by: Jorik Jonker <jorik.jonker@eu.equinix.com>
2021-07-19 10:06:37 +02:00
alvneiayu
112db1c509 [bitnami/postgresql] Add support for autogenerated certs (#6609)
* [bitnami/postgresql] Add support for autogenerated certs

* Modify properly the mariadb-galera version

* Include changes requested
2021-06-14 17:48:50 +02:00
Cédric de Saint Martin
1dbd2a2038 [bitnami/postgresql] SHM: remove size limit on the emptyDir. (#6232)
The size of this emptyDir in memory flavor will count against your container's memory limit, so no need to have a separate limit.
A lot of parallel queries on huge workloads can be greater than 1GB.
2021-04-29 09:40:50 +02:00
Lucas Hahn
c572e0be84 [bitnami/postgresql] Fix postgresql.conf generation from values (#5865) 2021-04-01 11:28:05 +02:00
Marco Kilchhofer
db08f68c1b [bitnami/postgresql] Don't put postgresql-postgres-password in secret when not needed (#5635)
* Don't put postgresql-postgres-password in secret when not needed

When only using the "postgres" user, the secret gets updated every helm upgrade with a
random string. When using with argocd (and maybe other gitops tools) there are always
changes until you put a dummy value into postgresqlPostgresPassword.

Use the same conditional as in statefulset.yaml:
~~~
{{- if not (eq (include "postgresql.username" .) "postgres")  }}
  # (..)
- name: POSTGRES_POSTGRES_PASSWORD
  valueFrom:
    secretKeyRef:
      name: {{ template "postgresql.secretName" . }}
      key: postgresql-postgres-password
{{- end }}
{{- end }}
~~~

* Use same conditional for readreplicas

In PR #4380 we forgot to also change the 2nd statefulset for the readreplicas
2021-03-03 12:24:44 +01:00
Juan Ariza Toledano
71fb99f541 [bitnami/*] Use common macro to define RBAC apiVersion (#5585) 2021-02-22 17:37:32 +01:00
Michael Wei
a334a133ba add template postgresql.name (#5489) 2021-02-15 09:43:45 +01:00
Michael Kriese
bc9ad41dfc [bitnami/postgresql] add optional startup probe to postgresql (#5445)
* feat: add optional startup probe to postgresql

* chore: fix lint

* Update README.md

* Update values.yaml

Co-authored-by: Andrés Bono <andresbono@vmware.com>
2021-02-11 13:58:13 +01:00
hanzala1234
fc694c5095 [bitnami/Postgresql] Add explicit namespace field on resources (#5333)
* Update configmap.yaml

* Update extended-config-configmap.yaml

* Update initialization-configmap.yaml

* Update metrics-configmap.yaml

* Update metrics-svc.yaml

* Update networkpolicy.yaml

* Update podsecuritypolicy.yaml

* Update role.yaml

* Update rolebinding.yaml

* Update secrets.yaml

* Update serviceaccount.yaml

* Update statefulset-readreplicas.yaml

* Update statefulset.yaml

* Update svc-headless.yaml

* Update svc-read.yaml

* Update svc.yaml

* Update chart version
2021-01-29 15:37:28 +01:00