Skip to content

Commit be516d0

Browse files
authored
Merge pull request #97 from cybertec-postgresql/doc
Doc
2 parents 715165c + b987e26 commit be516d0

File tree

11 files changed

+33
-13
lines changed

11 files changed

+33
-13
lines changed

charts/postgres-cluster/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# my-annotation: value
1313

1414
cluster:
15-
dockerImage: docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.6-1
15+
dockerImage: docker.io/cybertecpostgresql/cybertec-pg-container:postgres-18.0-1
1616
numberOfInstances: 2
1717

1818
postgresql:

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ spec:
170170
default: "13"
171171
target_major_version:
172172
type: string
173-
default: "17"
173+
default: "18"
174174
kubernetes:
175175
type: object
176176
properties:

charts/postgres-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: "17"
94+
target_major_version: "18"
9595

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

docs/hugo/content/en/first_cluster/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ kind: postgresql
1616
metadata:
1717
name: cluster-1
1818
spec:
19-
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.6-1"
19+
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-18.0-1"
2020
numberOfInstances: 1
2121
postgresql:
22-
version: "17"
22+
version: "18"
2323
resources:
2424
limits:
2525
cpu: 500m
@@ -30,7 +30,7 @@ spec:
3030
volume:
3131
size: 5Gi
3232
```
33-
Based on this Manifest the Operator will deploy a single-Node-Cluster based on the defined dockerImage and start the included Postgres-17-Server.
33+
Based on this Manifest the Operator will deploy a single-Node-Cluster based on the defined dockerImage and start the included Postgres-18-Server.
3434
Also created is a volume based on your default-storage Class. The Ressource-Definiton means, that we reserve a half cpu and a half GB Memory for this Cluster with the same Definition as limit.
3535

3636
After some seconds we should see, that the operator creates our cluster based on the declared definitions.

docs/hugo/content/en/ha_cluster/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ kind: postgresql
3030
metadata:
3131
name: cluster-1
3232
spec:
33-
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.6-1"
33+
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-18.0-1"
3434
numberOfInstances: 2
3535
postgresql:
36-
version: "17"
36+
version: "18"
3737
resources:
3838
limits:
3939
cpu: 500m

docs/hugo/content/en/release_notes/_index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ date: 2024-03-11T14:26:51+01:00
44
draft: false
55
weight: 2500
66
---
7+
### 0.9.0
8+
9+
#### Features
10+
- Adding PG18
11+
-
12+
- Changed SecurityContext to readonly
13+
14+
#### Fixes
15+
- pgBackRest Restore with TDE
16+
- Fix for Monitoring pgBackRest
17+
- Dependency updates and several small changes
18+
19+
#### Supported Versions
20+
21+
- PG: 13 - 17
22+
- Patroni: 4.0.5
23+
- pgBackRest: 2.54.2
24+
- Kubernetes: 1.21 - 1.32
25+
- Openshift: 4.8 - 4.18
726

827
### 0.8.3
928

manifests/operatorconfiguration.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ spec:
168168
default: "13"
169169
target_major_version:
170170
type: string
171-
default: "17"
171+
default: "18"
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: "17"
43+
target_major_version: "18"
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:"17"`
53+
TargetMajorVersion string `json:"target_major_version" default:"18"`
5454
}
5555

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

pkg/cluster/k8sres.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,11 @@ func generateSpiloJSONConfiguration(pg *cpov1.PostgresqlParam, patroni *cpov1.Pa
335335
pgVersion, err := strconv.Atoi(pg.PgVersion)
336336
if err != nil {
337337
fmt.Println("Problem to get PGVersion:", err)
338-
pgVersion = 16
338+
pgVersion = 18
339339
}
340340
if pgVersion > 14 {
341341
config.Bootstrap.Initdb = []interface{}{map[string]string{"auth-host": "scram-sha-256"},
342+
"data-checksums",
342343
map[string]string{"auth-local": "trust"},
343344
map[string]string{"encoding": "UTF8"},
344345
map[string]string{"locale": "en_US.UTF-8"},

0 commit comments

Comments
 (0)