Skip to content

Commit 2c6d703

Browse files
committed
Use PostgreSQL 17 by default
1 parent f269cd7 commit 2c6d703

File tree

12 files changed

+18
-15
lines changed

12 files changed

+18
-15
lines changed

charts/postgres-cluster/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# my-annotation: value
1313

1414
cluster:
15-
dockerImage: docker.io/cybertec-pg-container/postgres:rocky9-16.4-2
15+
dockerImage: docker.io/cybertec-pg-container/postgres:rocky9-17.0-2
1616
numberOfInstances: 2
1717

1818
postgresql:
19-
version: "16"
19+
version: "17"
2020
#parameters:
2121
# work_mem: "40MB"
2222

@@ -222,4 +222,4 @@ cluster:
222222
# values:
223223
# - enabled
224224

225-
teamId: default
225+
teamId: default

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ spec:
8484
"limit_iops": 16000,
8585
"limit_throughput": 1000,
8686
"postgresql_versions": [
87+
"17",
8788
"16",
8889
"15",
8990
"14",

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: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-16.2-1"
71+
default: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.0-2"
7272
enable_crd_registration:
7373
type: boolean
7474
default: true
@@ -170,7 +170,7 @@ spec:
170170
default: "13"
171171
target_major_version:
172172
type: string
173-
default: "16"
173+
default: "17"
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
# Database pod docker image
41-
docker_image: docker.io/cybertec-pg-container/postgres:rocky9-16.4-2
41+
docker_image: docker.io/cybertec-pg-container/postgres:rocky9-17.0-2
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: "13"
9393
# target Postgres major version when upgrading clusters automatically
94-
target_major_version: "16"
94+
target_major_version: "17"
9595

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

manifests/configmap.yaml

Lines changed: 1 addition & 1 deletion
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: docker.io/cybertec-pg-container/postgres:rocky9-16.4-2
37+
docker_image: docker.io/cybertec-pg-container/postgres:rocky9-17.0-2
3838
# downscaler_annotations: "deployment-time,downscaler/*"
3939
# enable_admin_role_for_users: "true"
4040
# enable_crd_registration: "true"

manifests/operatorconfiguration.crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ spec:
6666
type: string
6767
docker_image:
6868
type: string
69-
default: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-16.2-1"
69+
default: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.0-2"
7070
enable_crd_registration:
7171
type: boolean
7272
default: true
@@ -168,7 +168,7 @@ spec:
168168
default: "13"
169169
target_major_version:
170170
type: string
171-
default: "16"
171+
default: "17"
172172
kubernetes:
173173
type: object
174174
properties:

manifests/postgresql-operator-default-configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ configuration:
4040
# major_version_upgrade_team_allow_list:
4141
# - acid
4242
minimal_major_version: "13"
43-
target_major_version: "16"
43+
target_major_version: "17"
4444
kubernetes:
4545
# additional_pod_capabilities:
4646
# - "SYS_NICE"

pkg/apis/cpo.opensource.cybertec.at/v1/operator_configuration_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type MajorVersionUpgradeConfiguration struct {
5050
MajorVersionUpgradeMode string `json:"major_version_upgrade_mode" default:"off"` // off - no actions, manual - manifest triggers action, full - manifest and minimal version violation trigger upgrade
5151
MajorVersionUpgradeTeamAllowList []string `json:"major_version_upgrade_team_allow_list,omitempty"`
5252
MinimalMajorVersion string `json:"minimal_major_version" default:"13"`
53-
TargetMajorVersion string `json:"target_major_version" default:"16"`
53+
TargetMajorVersion string `json:"target_major_version" default:"17"`
5454
}
5555

5656
// KubernetesMetaConfiguration defines k8s conf required for all Postgres clusters and the operator itself

pkg/cluster/majorversionupgrade.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var VersionMap = map[string]int{
1818
"14": 140000,
1919
"15": 150000,
2020
"16": 160000,
21+
"17": 170000,
2122
}
2223

2324
// IsBiggerPostgresVersion Compare two Postgres version numbers

pkg/controller/operator_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *cpov1.OperatorConfigura
6363
result.MajorVersionUpgradeMode = util.Coalesce(fromCRD.MajorVersionUpgrade.MajorVersionUpgradeMode, "off")
6464
result.MajorVersionUpgradeTeamAllowList = fromCRD.MajorVersionUpgrade.MajorVersionUpgradeTeamAllowList
6565
result.MinimalMajorVersion = util.Coalesce(fromCRD.MajorVersionUpgrade.MinimalMajorVersion, "13")
66-
result.TargetMajorVersion = util.Coalesce(fromCRD.MajorVersionUpgrade.TargetMajorVersion, "16")
66+
result.TargetMajorVersion = util.Coalesce(fromCRD.MajorVersionUpgrade.TargetMajorVersion, "17")
6767

6868
// kubernetes config
6969
result.CustomPodAnnotations = fromCRD.Kubernetes.CustomPodAnnotations

0 commit comments

Comments
 (0)