Skip to content

Commit b9f9fc9

Browse files
authored
Allow to configure related images in Helm chart
Co-authored-by: Mathieu Parent <[email protected]>
1 parent d67c42d commit b9f9fc9

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

helm/install/templates/manager.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,10 @@ spec:
2020
env:
2121
- name: CRUNCHY_DEBUG
2222
value: "true"
23-
- name: RELATED_IMAGE_POSTGRES_13
24-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha:centos8-13.4-0"
25-
- name: RELATED_IMAGE_POSTGRES_13_GIS_3.1
26-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis-ha:centos8-13.4-3.1-0"
27-
- name: RELATED_IMAGE_PGBACKREST
28-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:centos8-2.33-2"
29-
- name: RELATED_IMAGE_PGBOUNCER
30-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:centos8-1.15-2"
31-
- name: RELATED_IMAGE_PGEXPORTER
32-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.0.2-0"
23+
{{- range $image_name, $image_val := .Values.relatedImages }}
24+
- name: RELATED_IMAGE_{{ $image_name | upper }}
25+
value: "{{ $image_val.repository }}:{{ $image_val.tag }}"
26+
{{- end }}
3327
{{- if .Values.singleNamespace }}
3428
- name: PGO_TARGET_NAMESPACE
3529
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }

helm/install/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,22 @@ image:
44
repository: registry.developers.crunchydata.com/crunchydata
55
tag: ubi8-5.0.2-0
66

7+
relatedImages:
8+
postgres_13:
9+
repository: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha
10+
tag: centos8-13.4-0
11+
postgres_13_gis_3.1:
12+
repository: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis-ha
13+
tag: centos8-13.4-3.1-0
14+
pgbackrest:
15+
repository: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest
16+
tag: centos8-2.33-2
17+
pgbouncer:
18+
repository: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer
19+
tag: centos8-1.15-2
20+
pgexporter:
21+
repository: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter
22+
tag: ubi8-5.0.2-0
23+
724
## Install in default or single namespace mode
825
singleNamespace: false

0 commit comments

Comments
 (0)