Skip to content

Commit

Permalink
Fix Postgres version default (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
martini-source authored Aug 10, 2023
1 parent ee33019 commit e9ed735
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Global:
Exoscale:
|ServiceKind |Key | Value |
| ------ | -------|-------|
|ExoscalePostgreSQL|`Spec.Parameters.Service.MajorVersion`| 15|
|ExoscalePostgreSQL|`Spec.Parameters.Service.MajorVersion`| 14|
|ExoscalePostgreSQL|`Spec.Parameters.Service.Zone`| ch-dk-2|
|ExoscalePostgreSQL|`Spec.Parameters.Size.Plan`| hobbyist-2|
|ExoscalePostgreSQL|`Spec.Parameters.Backup.TimeOfDay`| 12:00:00|
Expand Down Expand Up @@ -60,7 +60,7 @@ Exoscale:
VSHN:
|ServiceKind |Key | Value |
| ------ | -------|-------|
|VSHNPostgreSQL|`Spec.Parameters.Service.MajorVersion`|15|
|VSHNPostgreSQL|`Spec.Parameters.Service.MajorVersion`|14|
|VSHNPostgreSQL|`Spec.Parameters.Size.CPU`|600m|
|VSHNPostgreSQL|`Spec.Parameters.Size.Disk`|80Gi|
|VSHNPostgreSQL|`Spec.Parameters.Size.Memory`|3500Mi|
Expand Down
2 changes: 1 addition & 1 deletion internal/defaults/exoscalev1.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
func (d *Defaults) GetExoscalePostgreSQLDefault() *exoscalev1.ExoscalePostgreSQL {
var postgreSQLdefault exoscalev1.ExoscalePostgreSQL

postgreSQLdefault.Spec.Parameters.Service.MajorVersion = "15"
postgreSQLdefault.Spec.Parameters.Service.MajorVersion = "14"
postgreSQLdefault.Spec.Parameters.Service.Zone = "ch-dk-2"
postgreSQLdefault.Spec.Parameters.Size.Plan = "hobbyist-2"
postgreSQLdefault.Spec.Parameters.Backup.TimeOfDay = "12:00:00"
Expand Down
2 changes: 1 addition & 1 deletion internal/defaults/vshnv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
func (d *Defaults) GetVSHNPostgreSQLDefault() *vshnv1.VSHNPostgreSQL {
var postgreSQLdefault vshnv1.VSHNPostgreSQL

postgreSQLdefault.Spec.Parameters.Service.MajorVersion = "15"
postgreSQLdefault.Spec.Parameters.Service.MajorVersion = "14"
postgreSQLdefault.Spec.Parameters.Size.CPU = "600m"
postgreSQLdefault.Spec.Parameters.Size.Disk = "80Gi"
postgreSQLdefault.Spec.Parameters.Size.Memory = "3500Mi"
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/exoPostgreSQL/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
timeOfDay: "00:00:00"
network: {}
service:
majorVersion: "15"
majorVersion: "14"
pgSettings: null
zone: ch-dk-2
size:
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/exoPostgreSQL/secret-ref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
timeOfDay: "00:00:00"
network: {}
service:
majorVersion: "15"
majorVersion: "14"
pgSettings: null
zone: ch-dk-2
size:
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/vshnPostgreSQL/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
nodeSelector:
appuio.io/node-class: plus
service:
majorVersion: "15"
majorVersion: "14"
pgSettings: null
size:
cpu: 600m
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/vshnPostgreSQL/jsonInput.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
nodeSelector:
appuio.io/node-class: testing
service:
majorVersion: "15"
majorVersion: "14"
pgSettings: null
size:
cpu: 99999m
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/vshnPostgreSQL/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
nodeSelector:
appuio.io/node-class: plus
service:
majorVersion: "15"
majorVersion: "14"
pgSettings: null
size:
cpu: 100000m
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/vshnPostgreSQL/secret-ref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
nodeSelector:
appuio.io/node-class: plus
service:
majorVersion: "15"
majorVersion: "14"
pgSettings: null
size:
cpu: 600m
Expand Down

0 comments on commit e9ed735

Please sign in to comment.