Skip to content

Commit

Permalink
Change position of controller image value
Browse files Browse the repository at this point in the history
This allows for more controllers to be added in the future. This is a
breaking change to the v0 chart.

Issue: [sc-13977]
  • Loading branch information
cbandy committed Apr 4, 2022
1 parent 127368f commit df5d075
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions helm/install/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: pgo
description: Installer for PGO, the open source Postgres Operator from Crunchy Data

type: application
version: 0.2.5
appVersion: 5.1.0
2 changes: 1 addition & 1 deletion helm/install/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: operator
image: "{{ .Values.image.image }}"
image: {{ required ".Values.controllerImages.cluster is required" .Values.controllerImages.cluster | quote }}
env:
- name: PGO_NAMESPACE
valueFrom:
Expand Down
15 changes: 7 additions & 8 deletions helm/install/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
## Provide image repository and tag
image:
image: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.1.0-0
# controllerImages are used to run the PostgresCluster controller.
controllerImages:
cluster: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.1.0-0

# relatedImages are used when an image is omitted from the PostgresCluster spec.
relatedImages:
postgres_14:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.2-1
Expand All @@ -20,12 +21,10 @@ relatedImages:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.16-2
pgexporter:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.1.0-0


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

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

0 comments on commit df5d075

Please sign in to comment.