Skip to content

Commit

Permalink
Merge pull request #2 from pavel-jancik/templating
Browse files Browse the repository at this point in the history
feat(helm): Adding support for helm templates in some values
  • Loading branch information
pavel-jancik authored Apr 12, 2023
2 parents f86a53b + 8e0666d commit e6af3f2
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions helm/postgres/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: postgrescluster
description: A Helm chart for Kubernetes
type: application
# The version below should match the version on the PostgresCluster CRD
version: 5.3.1
# This version has to be increased via any change of the helm chart (e.g., comment in default values or templates)
version: 5.3.2
appVersion: 5.3.1
4 changes: 2 additions & 2 deletions helm/postgres/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
{{- end }}
{{- if .Values.instances }}
instances:
{{ toYaml .Values.instances | indent 4 }}
{{ tpl (.Values.instances | toYaml) . | indent 4 }}
{{- else }}
instances:
- name: {{ default "instance1" .Values.instanceName | quote }}
Expand All @@ -42,7 +42,7 @@ spec:
image: {{ .Values.imagePgBackRest | quote }}
{{- end }}
{{- if .Values.pgBackRestConfig }}
{{ toYaml .Values.pgBackRestConfig | indent 6 }}
{{ tpl (.Values.pgBackRestConfig | toYaml) . | indent 6 }}
{{- else if .Values.multiBackupRepos }}
configuration:
- secret:
Expand Down
4 changes: 2 additions & 2 deletions helm/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# available as one of the "RELATED_IMAGE_POSTGRES_..." images as part of the PGO
# installation if you want to deploy the image without setting the "postgres"
# image variable. This value is required.
postgresVersion: 14
postgresVersion: 15

# postGISVersion if sets and coupled with a PostGIS enabled container, enables
# PostGIS. This version number needs to be available as one of the
Expand Down Expand Up @@ -47,7 +47,7 @@ postgresVersion: 14
# below value. "postgresVersion" needs to match the version of Postgres that is
# used here. If using the GIS-enabled Postgres image, you need to ensure
# "postGISVersion" matches the version of PostGIS used.
# imagePostgres: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
# imagePostgres: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0

# imagePgBackRest is the pgBackRest backup utility image. This defaults to the
# below value.
Expand Down
4 changes: 2 additions & 2 deletions kustomize/azure/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: hippo-azure
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- dataVolumeClaimSpec:
accessModes:
Expand Down
4 changes: 2 additions & 2 deletions kustomize/certmanager/postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
customReplicationTLSSecret:
name: hippo-repl-tls
customTLSSecret:
Expand Down
4 changes: 2 additions & 2 deletions kustomize/gcs/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: hippo-gcs
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- dataVolumeClaimSpec:
accessModes:
Expand Down
4 changes: 2 additions & 2 deletions kustomize/high-availability/ha-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: hippo-ha
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- name: pgha1
replicas: 2
Expand Down
4 changes: 2 additions & 2 deletions kustomize/keycloak/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: keycloakdb
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- replicas: 2
dataVolumeClaimSpec:
Expand Down
4 changes: 2 additions & 2 deletions kustomize/multi-backup-repo/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: hippo-multi-repo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- dataVolumeClaimSpec:
accessModes:
Expand Down
4 changes: 2 additions & 2 deletions kustomize/postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- name: instance1
dataVolumeClaimSpec:
Expand Down
4 changes: 2 additions & 2 deletions kustomize/s3/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PostgresCluster
metadata:
name: hippo-s3
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0
postgresVersion: 14
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- dataVolumeClaimSpec:
accessModes:
Expand Down

0 comments on commit e6af3f2

Please sign in to comment.