Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/trento-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: The trento server chart contains all the components necessary to ru
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates
version: 3.2.0-dev3
version: 3.2.0-dev4

dependencies:
- name: trento-web
Expand Down
2 changes: 1 addition & 1 deletion charts/trento-server/charts/postgresql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ global:
image:
registry: registry.suse.com
repository: suse/postgres
tag: "14"
tag: "17.5"
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down
2 changes: 1 addition & 1 deletion charts/trento-server/charts/trento-wanda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ postgresql:
image:
registry: registry.suse.com
repository: suse/postgres
tag: "14"
tag: "17.5"

checks:
image:
Expand Down
2 changes: 1 addition & 1 deletion charts/trento-server/charts/trento-web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ postgresql:
image:
registry: registry.suse.com
repository: suse/postgres
tag: "14"
tag: "17.5"

secretKeyBase: ""
imagePullSecrets: []
Expand Down
22 changes: 21 additions & 1 deletion charts/trento-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ global:
image:
registry: registry.suse.com
repository: suse/postgres
tag: "14"
tag: "17.5"
prometheus:
name: prometheus-server
pathPrefix: /prometheus
Expand Down Expand Up @@ -75,6 +75,26 @@ postgresql:
fsGroup: 0
containerSecurityContext:
runAsUser: 0
primary:
extraInitContainers:
# Runs pg_upgrade in-place before PostgreSQL starts when the major version changes.
# PGAUTO_ONESHOT exits immediately with no-op when no upgrade is needed, so this is safe on every restart.
# Image tag uses global.postgresql.image.tag with "-debian" appended automatically.
# https://github.com/bitnami/charts/issues/14926#issuecomment-3192189184
- name: upgrade-postgres
image: "pgautoupgrade/pgautoupgrade:{{ .Values.global.postgresql.image.tag }}-debian"
securityContext:
runAsUser: 0
volumeMounts:
- name: data
mountPath: "{{ .Values.persistence.mountPath }}"
env:
- name: PGAUTO_ONESHOT
value: "yes"
- name: POSTGRES_DB
value: "{{ if .Values.global.postgresql.postgresqlDatabase }}{{ .Values.global.postgresql.postgresqlDatabase }}{{ else if .Values.postgresqlDatabase }}{{ .Values.postgresqlDatabase }}{{ else }}postgres{{ end }}"
- name: PGDATA
value: "{{ .Values.postgresqlDataDir }}"

prometheus:
enabled: true
Expand Down
Loading