Skip to content

Commit df5d075

Browse files
committed
Change position of controller image value
This allows for more controllers to be added in the future. This is a breaking change to the v0 chart. Issue: [sc-13977]
1 parent 127368f commit df5d075

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

helm/install/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apiVersion: v2
22
name: pgo
33
description: Installer for PGO, the open source Postgres Operator from Crunchy Data
4+
45
type: application
56
version: 0.2.5
67
appVersion: 5.1.0

helm/install/templates/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
spec:
1818
containers:
1919
- name: operator
20-
image: "{{ .Values.image.image }}"
20+
image: {{ required ".Values.controllerImages.cluster is required" .Values.controllerImages.cluster | quote }}
2121
env:
2222
- name: PGO_NAMESPACE
2323
valueFrom:

helm/install/values.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
2-
## Provide image repository and tag
3-
image:
4-
image: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.1.0-0
2+
# controllerImages are used to run the PostgresCluster controller.
3+
controllerImages:
4+
cluster: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.1.0-0
55

6+
# relatedImages are used when an image is omitted from the PostgresCluster spec.
67
relatedImages:
78
postgres_14:
89
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.2-1
@@ -20,12 +21,10 @@ relatedImages:
2021
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.16-2
2122
pgexporter:
2223
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.1.0-0
23-
2424

25-
# singleNamespace determines how to install PGO to watch namesapces. If set to
26-
# false, PGO will watch for Postgres clusters in all namesapces Setting to
27-
# "true" will instruct PGO to only watch for Postgres clusters in the namespace
28-
# that it is installed in. Defaults to the value below.
25+
# singleNamespace controls where PGO watches for PostgresClusters. When false,
26+
# PGO watches for and responds to PostgresClusters in all namespaces. When true,
27+
# PGO watches only the namespace in which it is installed.
2928
singleNamespace: false
3029

3130
# debug allows you to enable or disable the "debug" level of logging.

0 commit comments

Comments
 (0)