Skip to content
Merged

Doc #97

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/postgres-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# my-annotation: value

cluster:
dockerImage: docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.6-1
dockerImage: docker.io/cybertecpostgresql/cybertec-pg-container:postgres-18.0-1
numberOfInstances: 2

postgresql:
Expand Down
2 changes: 1 addition & 1 deletion charts/postgres-operator/crds/operatorconfigurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ spec:
default: "13"
target_major_version:
type: string
default: "17"
default: "18"
kubernetes:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion charts/postgres-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ configMajorVersionUpgrade:
# minimal Postgres major version that will not automatically be upgraded
minimal_major_version: "13"
# target Postgres major version when upgrading clusters automatically
target_major_version: "17"
target_major_version: "18"

configKubernetes:
# list of additional capabilities for postgres container
Expand Down
6 changes: 3 additions & 3 deletions docs/hugo/content/en/first_cluster/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ kind: postgresql
metadata:
name: cluster-1
spec:
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.6-1"
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-18.0-1"
numberOfInstances: 1
postgresql:
version: "17"
version: "18"
resources:
limits:
cpu: 500m
Expand All @@ -30,7 +30,7 @@ spec:
volume:
size: 5Gi
```
Based on this Manifest the Operator will deploy a single-Node-Cluster based on the defined dockerImage and start the included Postgres-17-Server.
Based on this Manifest the Operator will deploy a single-Node-Cluster based on the defined dockerImage and start the included Postgres-18-Server.
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.

After some seconds we should see, that the operator creates our cluster based on the declared definitions.
Expand Down
4 changes: 2 additions & 2 deletions docs/hugo/content/en/ha_cluster/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ kind: postgresql
metadata:
name: cluster-1
spec:
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.6-1"
dockerImage: "docker.io/cybertecpostgresql/cybertec-pg-container:postgres-18.0-1"
numberOfInstances: 2
postgresql:
version: "17"
version: "18"
resources:
limits:
cpu: 500m
Expand Down
19 changes: 19 additions & 0 deletions docs/hugo/content/en/release_notes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ date: 2024-03-11T14:26:51+01:00
draft: false
weight: 2500
---
### 0.9.0

#### Features
- Adding PG18
-
- Changed SecurityContext to readonly

#### Fixes
- pgBackRest Restore with TDE
- Fix for Monitoring pgBackRest
- Dependency updates and several small changes

#### Supported Versions

- PG: 13 - 17
- Patroni: 4.0.5
- pgBackRest: 2.54.2
- Kubernetes: 1.21 - 1.32
- Openshift: 4.8 - 4.18

### 0.8.3

Expand Down
2 changes: 1 addition & 1 deletion manifests/operatorconfiguration.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ spec:
default: "13"
target_major_version:
type: string
default: "17"
default: "18"
kubernetes:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion manifests/postgresql-operator-default-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ configuration:
# major_version_upgrade_team_allow_list:
# - acid
minimal_major_version: "13"
target_major_version: "17"
target_major_version: "18"
kubernetes:
# additional_pod_capabilities:
# - "SYS_NICE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type MajorVersionUpgradeConfiguration struct {
MajorVersionUpgradeMode string `json:"major_version_upgrade_mode" default:"off"` // off - no actions, manual - manifest triggers action, full - manifest and minimal version violation trigger upgrade
MajorVersionUpgradeTeamAllowList []string `json:"major_version_upgrade_team_allow_list,omitempty"`
MinimalMajorVersion string `json:"minimal_major_version" default:"13"`
TargetMajorVersion string `json:"target_major_version" default:"17"`
TargetMajorVersion string `json:"target_major_version" default:"18"`
}

// KubernetesMetaConfiguration defines k8s conf required for all Postgres clusters and the operator itself
Expand Down
3 changes: 2 additions & 1 deletion pkg/cluster/k8sres.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,11 @@ func generateSpiloJSONConfiguration(pg *cpov1.PostgresqlParam, patroni *cpov1.Pa
pgVersion, err := strconv.Atoi(pg.PgVersion)
if err != nil {
fmt.Println("Problem to get PGVersion:", err)
pgVersion = 16
pgVersion = 18
}
if pgVersion > 14 {
config.Bootstrap.Initdb = []interface{}{map[string]string{"auth-host": "scram-sha-256"},
"data-checksums",
map[string]string{"auth-local": "trust"},
map[string]string{"encoding": "UTF8"},
map[string]string{"locale": "en_US.UTF-8"},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/operator_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *cpov1.OperatorConfigura
result.MajorVersionUpgradeMode = util.Coalesce(fromCRD.MajorVersionUpgrade.MajorVersionUpgradeMode, "off")
result.MajorVersionUpgradeTeamAllowList = fromCRD.MajorVersionUpgrade.MajorVersionUpgradeTeamAllowList
result.MinimalMajorVersion = util.Coalesce(fromCRD.MajorVersionUpgrade.MinimalMajorVersion, "13")
result.TargetMajorVersion = util.Coalesce(fromCRD.MajorVersionUpgrade.TargetMajorVersion, "17")
result.TargetMajorVersion = util.Coalesce(fromCRD.MajorVersionUpgrade.TargetMajorVersion, "18")

// kubernetes config
result.CustomPodAnnotations = fromCRD.Kubernetes.CustomPodAnnotations
Expand Down
Loading