Unverified Commit b9f9fc97 authored by Mathieu Parent's avatar Mathieu Parent Committed by GitHub
Browse files

Allow to configure related images in Helm chart

parent d67c42dc
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -20,16 +20,10 @@ spec:
        env:
        - name: CRUNCHY_DEBUG
          value: "true"
        - name: RELATED_IMAGE_POSTGRES_13
          value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha:centos8-13.4-0"
        - name: RELATED_IMAGE_POSTGRES_13_GIS_3.1
          value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis-ha:centos8-13.4-3.1-0"
        - name: RELATED_IMAGE_PGBACKREST
          value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:centos8-2.33-2"
        - name: RELATED_IMAGE_PGBOUNCER
          value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:centos8-1.15-2"
        - name: RELATED_IMAGE_PGEXPORTER
          value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.0.2-0"
        {{- range  $image_name, $image_val := .Values.relatedImages }}
        - name: RELATED_IMAGE_{{ $image_name | upper }}
          value: "{{ $image_val.repository }}:{{ $image_val.tag }}"
        {{- end }}
        {{- if .Values.singleNamespace }}
        - name: PGO_TARGET_NAMESPACE
          valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
+17 −0
Original line number Diff line number Diff line
@@ -4,5 +4,22 @@ image:
  repository: registry.developers.crunchydata.com/crunchydata
  tag: ubi8-5.0.2-0

relatedImages:
  postgres_13:
    repository: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha
    tag: centos8-13.4-0
  postgres_13_gis_3.1:
    repository: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis-ha
    tag: centos8-13.4-3.1-0
  pgbackrest:
    repository: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest
    tag: centos8-2.33-2
  pgbouncer:
    repository: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer
    tag: centos8-1.15-2
  pgexporter:
    repository: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter
    tag: ubi8-5.0.2-0

## Install in default or single namespace mode
singleNamespace: false