Skip to content

Commit becf8a4

Browse files
yoshihikouenoFxKu
andauthored
Bump spilo and target version for PostgreSQL 15 (#2139)
* Bumped Spilo image tag to the one that supports PostgreSQL 15. Using CDP version temporarily until non-CDP one is released. * Added support for PostgreSQL 15 and made it default. 9.5 and 9.6 are now no longer supported * Bumped spilo image tag to 2.1-p9 * Bumped spilo image in test launcher Co-authored-by: yoshihiko <ariyoshi10@gmail.com> Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
1 parent 9c88fb9 commit becf8a4

File tree

19 files changed

+31
-29
lines changed

19 files changed

+31
-29
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pipelines with no access to Kubernetes API directly, promoting infrastructure as
2929

3030
### PostgreSQL features
3131

32-
* Supports PostgreSQL 14, starting from 10+
32+
* Supports PostgreSQL 15, starting from 10+
3333
* Streaming replication cluster via Patroni
3434
* Point-In-Time-Recovery with
3535
[pg_basebackup](https://www.postgresql.org/docs/11/app-pgbasebackup.html) /
@@ -61,7 +61,7 @@ We introduce the major version into the backup path to smoothen the [major versi
6161
The new operator configuration can set a compatibility flag *enable_spilo_wal_path_compat* to make Spilo look for wal segments in the current path but also old format paths.
6262
This comes at potential performance costs and should be disabled after a few days.
6363

64-
The newest Spilo image is: `registry.opensource.zalan.do/acid/spilo-14:2.1-p7`
64+
The newest Spilo image is: `ghcr.io/zalando/spilo-15:2.1-p9`
6565

6666
The last Spilo 12 image is: `registry.opensource.zalan.do/acid/spilo-12:1.6-p5`
6767

charts/postgres-operator-ui/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ spec:
7676
"cost_core": 0.0575,
7777
"cost_memory": 0.014375,
7878
"postgresql_versions": [
79+
"15",
7980
"14",
8081
"13",
8182
"12",

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
type: string
6969
docker_image:
7070
type: string
71-
default: "registry.opensource.zalan.do/acid/spilo-14:2.1-p7"
71+
default: "ghcr.io/zalando/spilo-15:2.1-p9"
7272
enable_crd_registration:
7373
type: boolean
7474
default: true
@@ -170,7 +170,7 @@ spec:
170170
default: "11"
171171
target_major_version:
172172
type: string
173-
default: "14"
173+
default: "15"
174174
kubernetes:
175175
type: object
176176
properties:

charts/postgres-operator/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ configGeneral:
3838
# etcd connection string for Patroni. Empty uses K8s-native DCS.
3939
etcd_host: ""
4040
# Spilo docker image
41-
docker_image: registry.opensource.zalan.do/acid/spilo-14:2.1-p7
41+
docker_image: ghcr.io/zalando/spilo-15:2.1-p9
4242

4343
# key name for annotation to ignore globally configured instance limits
4444
# ignore_instance_limits_annotation_key: ""
@@ -91,7 +91,7 @@ configMajorVersionUpgrade:
9191
# minimal Postgres major version that will not automatically be upgraded
9292
minimal_major_version: "11"
9393
# target Postgres major version when upgrading clusters automatically
94-
target_major_version: "14"
94+
target_major_version: "15"
9595

9696
configKubernetes:
9797
# list of additional capabilities for postgres container

docs/reference/operator_parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ CRD-configuration, they are grouped under the `major_version_upgrade` key.
251251
* **target_major_version**
252252
The target Postgres major version when upgrading clusters automatically
253253
which violate the configured allowed `minimal_major_version` when
254-
`major_version_upgrade_mode` is set to `"full"`. The default is `"14"`.
254+
`major_version_upgrade_mode` is set to `"full"`. The default is `"15"`.
255255

256256
## Kubernetes resources
257257

docs/user.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
databases:
3131
foo: zalando
3232
postgresql:
33-
version: "14"
33+
version: "15"
3434
```
3535
3636
Once you cloned the Postgres Operator [repository](https://github.com/zalando/postgres-operator)
@@ -109,7 +109,7 @@ metadata:
109109
spec:
110110
[...]
111111
postgresql:
112-
version: "14"
112+
version: "15"
113113
parameters:
114114
password_encryption: scram-sha-256
115115
```

e2e/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ IFS=$'\n\t'
88

99
readonly cluster_name="postgres-operator-e2e-tests"
1010
readonly kubeconfig_path="/tmp/kind-config-${cluster_name}"
11-
readonly spilo_image="registry.opensource.zalan.do/acid/spilo-14-e2e:0.1"
11+
readonly spilo_image="registry.opensource.zalan.do/acid/spilo-15-e2e:0.1"
1212
readonly e2e_test_runner_image="registry.opensource.zalan.do/acid/postgres-operator-e2e-tests-runner:0.4"
1313

1414
export GOPATH=${GOPATH-~/go}

e2e/tests/test_e2e.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from tests.k8s_api import K8s
1313
from kubernetes.client.rest import ApiException
1414

15-
SPILO_CURRENT = "registry.opensource.zalan.do/acid/spilo-14-e2e:0.3"
16-
SPILO_LAZY = "registry.opensource.zalan.do/acid/spilo-14-e2e:0.4"
15+
SPILO_CURRENT = "registry.opensource.zalan.do/acid/spilo-15-e2e:0.1"
16+
SPILO_LAZY = "registry.opensource.zalan.do/acid/spilo-15-e2e:0.2"
1717

1818

1919
def to_selector(labels):

manifests/complete-postgres-manifest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
# "delete-date": "2020-08-31" # can only be deleted on that day if "delete-date "key is configured
1111
# "delete-clustername": "acid-test-cluster" # can only be deleted when name matches if "delete-clustername" key is configured
1212
spec:
13-
dockerImage: registry.opensource.zalan.do/acid/spilo-14:2.1-p7
13+
dockerImage: ghcr.io/zalando/spilo-15:2.1-p9
1414
teamId: "acid"
1515
numberOfInstances: 2
1616
users: # Application/Robot users
@@ -44,7 +44,7 @@ spec:
4444
defaultRoles: true
4545
defaultUsers: false
4646
postgresql:
47-
version: "14"
47+
version: "15"
4848
parameters: # Expert section
4949
shared_buffers: "32MB"
5050
max_connections: "10"

manifests/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data:
3434
# default_memory_request: 100Mi
3535
# delete_annotation_date_key: delete-date
3636
# delete_annotation_name_key: delete-clustername
37-
docker_image: registry.opensource.zalan.do/acid/spilo-14:2.1-p7
37+
docker_image: ghcr.io/zalando/spilo-15:2.1-p9
3838
# downscaler_annotations: "deployment-time,downscaler/*"
3939
# enable_admin_role_for_users: "true"
4040
# enable_crd_registration: "true"
@@ -145,7 +145,7 @@ data:
145145
spilo_privileged: "false"
146146
storage_resize_mode: "pvc"
147147
super_username: postgres
148-
# target_major_version: "14"
148+
# target_major_version: "15"
149149
# team_admin_role: "admin"
150150
# team_api_role_configuration: "log_statement:all"
151151
# teams_api_url: http://fake-teams-api.default.svc.cluster.local

0 commit comments

Comments
 (0)