Skip to content

Commit

Permalink
Add support for PostgreSQL 15 and 16 on Exoscale
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bigler <[email protected]>
  • Loading branch information
TheBigLee committed Aug 7, 2024
1 parent 0c9e131 commit 7c531f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apis/exoscale/v1/dbaas_exoscale_postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ type ExoscalePostgreSQLParameters struct {
type ExoscalePostgreSQLServiceSpec struct {
ExoscaleDBaaSServiceSpec `json:",inline"`

// +kubebuilder:validation:Enum="14"
// +kubebuilder:default="14"
// +kubebuilder:validation:Enum="16"
// +kubebuilder:default="14";"15";"16"

// MajorVersion contains the major version for PostgreSQL.
// Currently only "14" is supported. Leave it empty to always get the latest supported version.
// Leave it empty to always get the latest supported version.
MajorVersion string `json:"majorVersion,omitempty"`

// PGSettings contains additional PostgreSQL settings.
Expand Down
9 changes: 6 additions & 3 deletions crds/exoscale.appcat.vshn.io_exoscalepostgresqls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,15 @@ spec:
description: Service contains Exoscale PostgreSQL DBaaS specific properties
properties:
majorVersion:
default: "14"
default:
- "14"
- "15"
- "16"
description: |-
MajorVersion contains the major version for PostgreSQL.
Currently only "14" is supported. Leave it empty to always get the latest supported version.
Leave it empty to always get the latest supported version.
enum:
- "14"
- "16"
type: string
pgSettings:
description: PGSettings contains additional PostgreSQL settings.
Expand Down

0 comments on commit 7c531f3

Please sign in to comment.