Skip to content

Commit

Permalink
add initial changes for PG16 compatibility and pgMonitor 4.10.0 bump
Browse files Browse the repository at this point in the history
  • Loading branch information
dsessler7 committed Oct 3, 2023
1 parent a2b9c24 commit cb22a48
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PGO_IMAGE_URL ?= https://www.crunchydata.com/products/crunchy-postgresql-for-kub
PGO_IMAGE_PREFIX ?= localhost

PGMONITOR_DIR ?= hack/tools/pgmonitor
PGMONITOR_VERSION ?= v4.9.0
PGMONITOR_VERSION ?= v4.10.0
QUERIES_CONFIG_DIR ?= hack/tools/queries

# Buildah's "build" used to be "bud". Use the alias to be compatible for a while.
Expand Down Expand Up @@ -233,6 +233,7 @@ generate-kuttl: ## Generate kuttl tests
[ ! -d testing/kuttl/e2e-generated-other ] || rm -r testing/kuttl/e2e-generated-other
bash -ceu ' \
case $(KUTTL_PG_VERSION) in \
16 ) export KUTTL_BITNAMI_IMAGE_TAG=16.0.0-debian-11-r3 ;; \
15 ) export KUTTL_BITNAMI_IMAGE_TAG=15.0.0-debian-11-r4 ;; \
14 ) export KUTTL_BITNAMI_IMAGE_TAG=14.5.0-debian-11-r37 ;; \
13 ) export KUTTL_BITNAMI_IMAGE_TAG=13.8.0-debian-11-r39 ;; \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ spec:
type: object
fromPostgresVersion:
description: The major version of PostgreSQL before the upgrade.
maximum: 15
maximum: 16
minimum: 10
type: integer
image:
Expand Down Expand Up @@ -937,7 +937,7 @@ spec:
type: string
toPostgresVersion:
description: The major version of PostgreSQL to be upgraded to.
maximum: 15
maximum: 16
minimum: 10
type: integer
tolerations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10471,7 +10471,7 @@ spec:
postgresVersion:
description: The major version of PostgreSQL installed in the PostgreSQL
image
maximum: 15
maximum: 16
minimum: 10
type: integer
proxy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type PGUpgradeSpec struct {
// The major version of PostgreSQL before the upgrade.
// +kubebuilder:validation:Required
// +kubebuilder:validation:Minimum=10
// +kubebuilder:validation:Maximum=15
// +kubebuilder:validation:Maximum=16
FromPostgresVersion int `json:"fromPostgresVersion"`

// TODO(benjaminjb): define webhook validation to make sure
Expand All @@ -70,7 +70,7 @@ type PGUpgradeSpec struct {
// The major version of PostgreSQL to be upgraded to.
// +kubebuilder:validation:Required
// +kubebuilder:validation:Minimum=10
// +kubebuilder:validation:Maximum=15
// +kubebuilder:validation:Maximum=16
ToPostgresVersion int `json:"toPostgresVersion"`

// The image name to use for PostgreSQL containers after upgrade.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type PostgresClusterSpec struct {
// The major version of PostgreSQL installed in the PostgreSQL image
// +kubebuilder:validation:Required
// +kubebuilder:validation:Minimum=10
// +kubebuilder:validation:Maximum=15
// +kubebuilder:validation:Maximum=16
// +operator-sdk:csv:customresourcedefinitions:type=spec,order=1
PostgresVersion int `json:"postgresVersion"`

Expand Down

0 comments on commit cb22a48

Please sign in to comment.