Skip to content

Commit bf03957

Browse files
committed
Make PostgresClusters API version default to v1 and postgres version
default to 18
1 parent eb3de7c commit bf03957

File tree

12 files changed

+28
-20
lines changed

12 files changed

+28
-20
lines changed

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Each of the examples has its own README that guides you through the process of d
1111
The best way to get started is to fork this repository and experiment with the examples.
1212
The examples as provided are designed for the use of PGO along with Crunchy Data's Postgres distribution, Crunchy Postgres, as Crunchy Postgres for Kubernetes. For more information on the use of container images downloaded from the Crunchy Data Developer Portal or other third party sources, please see 'License and Terms' below.
1313

14+
By default, these examples are set to use the `v1` version of the PostgresCluster API, which is only available in PGO v6. If you plan to use these examples with PGO v5, or want to use the older API with PGO v6, you will need to change the version suffix in the `apiVersion` of the PostgresCluster manifests to `v1beta1`.
15+
1416
### Help with the Examples
1517

1618
* For general questions or community support, we welcome you to join our [community Discord](https://discord.gg/BnsMEeaPBV).

‎helm/postgres/Chart.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: postgrescluster
33
description: A Helm chart for Kubernetes
44
type: application
55
# The version below should match the version on the PostgresCluster CRD
6-
version: 5.7.4
7-
appVersion: 5.7.4
6+
version: 6.0.0
7+
appVersion: 6.0.0

‎helm/postgres/templates/postgres.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: postgres-operator.crunchydata.com/v1beta1
1+
apiVersion: postgres-operator.crunchydata.com/{{required "You must set the PostgresCluster API version to deploy." .Values.apiVersion }}
22
kind: PostgresCluster
33
metadata:
44
name: {{default .Release.Name .Values.name }}

‎helm/postgres/values.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
# available as one of the "RELATED_IMAGE_POSTGRES_..." images as part of the PGO
1616
# installation if you want to deploy the image without setting the "postgres"
1717
# image variable. This value is required.
18-
postgresVersion: 17
18+
postgresVersion: 18
19+
20+
# apiVersion sets the PostgresCluster API version to use. When deploying a
21+
# PostgresCluster with PGO v6, you can use the newer v1 API version or the older
22+
# v1beta1. When deploying a PostgresCluster with PGO v5, you must use the older
23+
# PostgresCluster API version, v1beta1.
24+
apiVersion: v1
1925

2026
# postGISVersion if set and coupled with a PostGIS enabled container, enables
2127
# PostGIS. This version number needs to be available as one of the

‎kustomize/azure/postgres.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
apiVersion: postgres-operator.crunchydata.com/v1beta1
1+
apiVersion: postgres-operator.crunchydata.com/v1
22
kind: PostgresCluster
33
metadata:
44
name: hippo-azure
55
spec:
6-
postgresVersion: 17
6+
postgresVersion: 18
77
instances:
88
- dataVolumeClaimSpec:
99
accessModes:

‎kustomize/certmanager/postgres/postgres.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
apiVersion: postgres-operator.crunchydata.com/v1beta1
1+
apiVersion: postgres-operator.crunchydata.com/v1
22
kind: PostgresCluster
33
metadata:
44
name: hippo
55
spec:
6-
postgresVersion: 17
6+
postgresVersion: 18
77
customReplicationTLSSecret:
88
name: hippo-repl-tls
99
customTLSSecret:

‎kustomize/gcs/postgres.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
apiVersion: postgres-operator.crunchydata.com/v1beta1
1+
apiVersion: postgres-operator.crunchydata.com/v1
22
kind: PostgresCluster
33
metadata:
44
name: hippo-gcs
55
spec:
6-
postgresVersion: 17
6+
postgresVersion: 18
77
instances:
88
- dataVolumeClaimSpec:
99
accessModes:

‎kustomize/high-availability/ha-postgres.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
apiVersion: postgres-operator.crunchydata.com/v1beta1
1+
apiVersion: postgres-operator.crunchydata.com/v1
22
kind: PostgresCluster
33
metadata:
44
name: hippo-ha
55
spec:
6-
postgresVersion: 17
6+
postgresVersion: 18
77
instances:
88
- name: pgha1
99
replicas: 2

‎kustomize/keycloak/postgres.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
apiVersion: postgres-operator.crunchydata.com/v1beta1
1+
apiVersion: postgres-operator.crunchydata.com/v1
22
kind: PostgresCluster
33
metadata:
44
name: keycloakdb
55
annotations:
66
postgres-operator.crunchydata.com/autoCreateUserSchema: "true"
77
spec:
8-
postgresVersion: 17
8+
postgresVersion: 18
99
instances:
1010
- replicas: 2
1111
dataVolumeClaimSpec:

‎kustomize/multi-backup-repo/postgres.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
apiVersion: postgres-operator.crunchydata.com/v1beta1
1+
apiVersion: postgres-operator.crunchydata.com/v1
22
kind: PostgresCluster
33
metadata:
44
name: hippo-multi-repo
55
spec:
6-
postgresVersion: 17
6+
postgresVersion: 18
77
instances:
88
- dataVolumeClaimSpec:
99
accessModes:

0 commit comments

Comments
(0)