diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bacef5ac20..498c96370b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -64,9 +64,9 @@ jobs: with: k3s-channel: "${{ matrix.kubernetes }}" prefetch-images: | - docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 - docker.io/ivorysql/pgbouncer:ubi9-1.25.2-5.6-1 - docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 + docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 + docker.io/ivorysql/pgbouncer:ubi9-1.26.1-6.0-1 + docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 - run: make createnamespaces check-envtest-existing env: @@ -98,13 +98,13 @@ jobs: with: k3s-channel: "${{ matrix.kubernetes }}" prefetch-images: | - docker.io/ivorysql/pgadmin:ubi9-9.11-5.6-1 - docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 - docker.io/ivorysql/pgbouncer:ubi9-1.25.2-5.6-1 - docker.io/ivorysql/postgres-exporter:ubi9-0.17.0-5.6-1 - docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - docker.io/ivorysql/postgis:ubi9-3.5-5.6-1 - registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi9-5.6.1-0 + docker.io/ivorysql/pgadmin:ubi9-9.19-6.0-1 + docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 + docker.io/ivorysql/pgbouncer:ubi9-1.26.1-6.0-1 + docker.io/ivorysql/postgres-exporter:ubi9-0.21.1-6.0-1 + docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + docker.io/ivorysql/postgis:ubi9-3.7-6.0-1 + registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi9-6.0.1-0 - run: go mod download - name: Build executable run: IVYO_VERSION='${{ github.sha }}' make build-ivory-operator @@ -118,13 +118,13 @@ jobs: docker run --detach --network host --read-only \ --volume "$(pwd):/mnt" --workdir '/mnt' --env 'PATH=/mnt/bin' \ --env 'KUBECONFIG=hack/.kube/ivory-operator/ivyo' \ - --env 'RELATED_IMAGE_PGADMIN=docker.io/ivorysql/pgadmin:ubi9-9.11-5.6-1' \ - --env 'RELATED_IMAGE_PGBACKREST=docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1' \ - --env 'RELATED_IMAGE_PGBOUNCER=docker.io/ivorysql/pgbouncer:ubi9-1.25.2-5.6-1' \ - --env 'RELATED_IMAGE_PGEXPORTER=docker.io/ivorysql/postgres-exporter:ubi9-0.17.0-5.6-1' \ - --env 'RELATED_IMAGE_PGUPGRADE=registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi9-5.6.1-0' \ - --env 'RELATED_IMAGE_IVORY_18=docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1' \ - --env 'RELATED_IMAGE_IVORY_18_GIS_3.5=docker.io/ivorysql/postgis:ubi9-3.5-5.6-1' \ + --env 'RELATED_IMAGE_PGADMIN=docker.io/ivorysql/pgadmin:ubi9-9.19-6.0-1' \ + --env 'RELATED_IMAGE_PGBACKREST=docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1' \ + --env 'RELATED_IMAGE_PGBOUNCER=docker.io/ivorysql/pgbouncer:ubi9-1.26.1-6.0-1' \ + --env 'RELATED_IMAGE_PGEXPORTER=docker.io/ivorysql/postgres-exporter:ubi9-0.21.1-6.0-1' \ + --env 'RELATED_IMAGE_PGUPGRADE=registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi9-6.0.1-0' \ + --env 'RELATED_IMAGE_IVORY_19=docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1' \ + --env 'RELATED_IMAGE_IVORY_19_GIS_3.7=docker.io/ivorysql/postgis:ubi9-3.7-6.0-1' \ --env 'IVYO_FEATURE_GATES=TablespaceVolumes=true' \ --name 'ivory-operator' ubuntu \ ivory-operator @@ -135,11 +135,11 @@ jobs: - run: make generate-kuttl env: - KUTTL_PG_UPGRADE_FROM_VERSION: '18' - KUTTL_PG_UPGRADE_TO_VERSION: '18' - KUTTL_PG_VERSION: '18' - KUTTL_POSTGIS_VERSION: '3.5' - KUTTL_IVORY_IMAGE: 'docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1' + KUTTL_PG_UPGRADE_FROM_VERSION: '19' + KUTTL_PG_UPGRADE_TO_VERSION: '19' + KUTTL_PG_VERSION: '19' + KUTTL_POSTGIS_VERSION: '3.7' + KUTTL_IVORY_IMAGE: 'docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1' - run: | make check-kuttl && exit failed=$? diff --git a/Makefile b/Makefile index 5a0b20afa4..cbcfc39247 100644 --- a/Makefile +++ b/Makefile @@ -204,9 +204,9 @@ check-kuttl: ## example command: make check-kuttl KUTTL_TEST=' .PHONY: generate-kuttl generate-kuttl: export KUTTL_PG_UPGRADE_FROM_VERSION ?= 14 generate-kuttl: export KUTTL_PG_UPGRADE_TO_VERSION ?= 15 -generate-kuttl: export KUTTL_PG_VERSION ?= 15 -generate-kuttl: export KUTTL_POSTGIS_VERSION ?= 3.5 -generate-kuttl: export KUTTL_IVORY_IMAGE ?= docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 +generate-kuttl: export KUTTL_PG_VERSION ?= 19 +generate-kuttl: export KUTTL_POSTGIS_VERSION ?= 3.7 +generate-kuttl: export KUTTL_IVORY_IMAGE ?= docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 generate-kuttl: ## Generate kuttl tests [ ! -d testing/kuttl/e2e-generated ] || rm -r testing/kuttl/e2e-generated [ ! -d testing/kuttl/e2e-generated-other ] || rm -r testing/kuttl/e2e-generated-other diff --git a/config/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml b/config/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml index 8ee3549006..337815e39b 100644 --- a/config/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml +++ b/config/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml @@ -10468,7 +10468,7 @@ spec: postgresVersion: description: The major version of PostgreSQL installed in the PostgreSQL image - maximum: 18 + maximum: 19 minimum: 10 type: integer proxy: diff --git a/config/crd/bases/ivory-operator.ivorysql.org_ivyupgrades.yaml b/config/crd/bases/ivory-operator.ivorysql.org_ivyupgrades.yaml index 0e6261346d..a07127fe75 100644 --- a/config/crd/bases/ivory-operator.ivorysql.org_ivyupgrades.yaml +++ b/config/crd/bases/ivory-operator.ivorysql.org_ivyupgrades.yaml @@ -857,7 +857,7 @@ spec: type: object fromIvoryVersion: description: The major version of IvorySQL before the upgrade. - maximum: 18 + maximum: 19 minimum: 10 type: integer image: @@ -936,7 +936,7 @@ spec: type: string toIvoryVersion: description: The major version of IvorySQL to be upgraded to. - maximum: 18 + maximum: 19 minimum: 10 type: integer tolerations: diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index 4ba5373723..2d86ea9baa 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -12,4 +12,4 @@ bases: images: - name: ivory-operator newName: docker.io/ivorysql/ivory-operator - newTag: v5.0 + newTag: v6.0 diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 27ba0b613d..05a81aa457 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -18,20 +18,20 @@ spec: fieldPath: metadata.namespace - name: IVORY_DEBUG value: "true" - - name: RELATED_IMAGE_IVORY_18 - value: "docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1" + - name: RELATED_IMAGE_IVORY_19 + value: "docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1" - name: RELATED_IMAGE_PGADMIN - value: "docker.io/ivorysql/pgadmin:ubi9-9.11-5.6-1" + value: "docker.io/ivorysql/pgadmin:ubi9-9.19-6.0-1" - name: RELATED_IMAGE_PGBACKREST - value: "docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1" + value: "docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1" - name: RELATED_IMAGE_PGBOUNCER - value: "docker.io/ivorysql/pgbouncer:ubi9-1.25.2-5.6-1" + value: "docker.io/ivorysql/pgbouncer:ubi9-1.26.1-6.0-1" - name: RELATED_IMAGE_PGEXPORTER - value: "docker.io/ivorysql/postgres-exporter:ubi9-0.17.0-5.6-1" + value: "docker.io/ivorysql/postgres-exporter:ubi9-0.21.1-6.0-1" - name: RELATED_IMAGE_PGUPGRADE - value: "registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi9-5.6.1-0" - - name: RELATED_IMAGE_POSTGRES_18_GIS_3.5 - value: "docker.io/ivorysql/ivorysql-postgis:ubi9-3.5-5.6-1" + value: "registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi9-6.0.1-0" + - name: RELATED_IMAGE_IVORY_19_GIS_3.7 + value: "docker.io/ivorysql/postgis:ubi9-3.7-6.0-1" securityContext: allowPrivilegeEscalation: false capabilities: { drop: [ALL] } diff --git a/config/singlenamespace/kustomization.yaml b/config/singlenamespace/kustomization.yaml index c0f3a94361..b825474c7a 100644 --- a/config/singlenamespace/kustomization.yaml +++ b/config/singlenamespace/kustomization.yaml @@ -14,4 +14,4 @@ patches: images: - name: ivory-operator newName: docker.io/ivorysql/ivory-operator - newTag: v5.0 + newTag: v6.0 diff --git a/examples/ivorycluster/ivorycluster.yaml b/examples/ivorycluster/ivorycluster.yaml index 3fd0f932c5..48abfdcc5b 100644 --- a/examples/ivorycluster/ivorycluster.yaml +++ b/examples/ivorycluster/ivorycluster.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: hippo spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - name: instance1 dataVolumeClaimSpec: @@ -15,7 +15,7 @@ spec: storage: 1Gi backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 repos: - name: repo1 volume: diff --git a/examples/kustomize/azure/ivory.yaml b/examples/kustomize/azure/ivory.yaml index 0c3d32de38..709319947a 100644 --- a/examples/kustomize/azure/ivory.yaml +++ b/examples/kustomize/azure/ivory.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: hippo-azure spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - dataVolumeClaimSpec: accessModes: @@ -14,7 +14,7 @@ spec: storage: 1Gi backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 configuration: - secret: name: ivyo-azure-creds diff --git a/examples/kustomize/gcs/ivory.yaml b/examples/kustomize/gcs/ivory.yaml index 64ef63ce15..942d486dcf 100644 --- a/examples/kustomize/gcs/ivory.yaml +++ b/examples/kustomize/gcs/ivory.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: hippo-gcs spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - dataVolumeClaimSpec: accessModes: @@ -14,7 +14,7 @@ spec: storage: 1Gi backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 configuration: - secret: name: ivyo-gcs-creds diff --git a/examples/kustomize/high-availability/ha-ivory.yaml b/examples/kustomize/high-availability/ha-ivory.yaml index fd918a99d5..8dffd78178 100644 --- a/examples/kustomize/high-availability/ha-ivory.yaml +++ b/examples/kustomize/high-availability/ha-ivory.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: hippo-ha spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - name: pgha1 replicas: 2 @@ -26,7 +26,7 @@ spec: ivory-operator.ivorysql.org/instance-set: pgha1 backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 repos: - name: repo1 volume: diff --git a/examples/kustomize/install/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml b/examples/kustomize/install/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml index 8ee3549006..337815e39b 100644 --- a/examples/kustomize/install/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml +++ b/examples/kustomize/install/crd/bases/ivory-operator.ivorysql.org_ivoryclusters.yaml @@ -10468,7 +10468,7 @@ spec: postgresVersion: description: The major version of PostgreSQL installed in the PostgreSQL image - maximum: 18 + maximum: 19 minimum: 10 type: integer proxy: diff --git a/examples/kustomize/install/default/kustomization.yaml b/examples/kustomize/install/default/kustomization.yaml index 7c2919cf62..65b97ad0e8 100644 --- a/examples/kustomize/install/default/kustomization.yaml +++ b/examples/kustomize/install/default/kustomization.yaml @@ -13,7 +13,7 @@ bases: images: - name: ivory-operator newName: docker.io/ivorysql/ivory-operator - newTag: v5.0 + newTag: v6.0 patchesJson6902: - target: { group: apps, version: v1, kind: Deployment, name: ivyo } diff --git a/examples/kustomize/install/manager/manager.yaml b/examples/kustomize/install/manager/manager.yaml index f835263e4b..79f9ec2356 100644 --- a/examples/kustomize/install/manager/manager.yaml +++ b/examples/kustomize/install/manager/manager.yaml @@ -26,10 +26,10 @@ spec: fieldPath: metadata.namespace - name: IVORY_DEBUG value: "true" - - name: RELATED_IMAGE_IVORY_5 - value: "docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1" + - name: RELATED_IMAGE_IVORY_19 + value: "docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1" - name: RELATED_IMAGE_PGBACKREST - value: "docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1" + value: "docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1" securityContext: allowPrivilegeEscalation: false diff --git a/examples/kustomize/install/singlenamespace/kustomization.yaml b/examples/kustomize/install/singlenamespace/kustomization.yaml index 1f682d60dd..80fe6e23a4 100644 --- a/examples/kustomize/install/singlenamespace/kustomization.yaml +++ b/examples/kustomize/install/singlenamespace/kustomization.yaml @@ -13,7 +13,7 @@ bases: images: - name: ivory-operator newName: docker.io/ivorysql/ivory-operator - newTag: v5.0 + newTag: v6.0 patchesJson6902: - target: { group: apps, version: v1, kind: Deployment, name: ivyo } diff --git a/examples/kustomize/ivory/ivory.yaml b/examples/kustomize/ivory/ivory.yaml index e7127216b4..25d1fe6a37 100644 --- a/examples/kustomize/ivory/ivory.yaml +++ b/examples/kustomize/ivory/ivory.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: hippo spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - name: instance1 dataVolumeClaimSpec: @@ -15,7 +15,7 @@ spec: storage: 1Gi backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 repos: - name: repo1 volume: diff --git a/examples/kustomize/keycloak/ivory.yaml b/examples/kustomize/keycloak/ivory.yaml index 5c586aaef7..df8065a9b7 100644 --- a/examples/kustomize/keycloak/ivory.yaml +++ b/examples/kustomize/keycloak/ivory.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: keycloakdb spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - replicas: 2 dataVolumeClaimSpec: @@ -25,7 +25,7 @@ spec: ivory-operator.ivorysql.org/instance-set: "00" backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 repos: - name: repo1 volume: diff --git a/examples/kustomize/multi-backup-repo/ivory.yaml b/examples/kustomize/multi-backup-repo/ivory.yaml index f5cccbee86..0eef20b29e 100644 --- a/examples/kustomize/multi-backup-repo/ivory.yaml +++ b/examples/kustomize/multi-backup-repo/ivory.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: hippo-multi-repo spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - dataVolumeClaimSpec: accessModes: @@ -14,7 +14,7 @@ spec: storage: 1Gi backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 configuration: - secret: name: ivyo-multi-repo-creds diff --git a/examples/kustomize/s3/ivory.yaml b/examples/kustomize/s3/ivory.yaml index 4c6346a0a3..df48780e5a 100644 --- a/examples/kustomize/s3/ivory.yaml +++ b/examples/kustomize/s3/ivory.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: hippo-s3 spec: - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 - postgresVersion: 15 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 + postgresVersion: 19 instances: - dataVolumeClaimSpec: accessModes: @@ -14,7 +14,7 @@ spec: storage: 1Gi backups: pgbackrest: - image: docker.io/ivorysql/pgbackrest:ubi9-2.58.0-5.6-1 + image: docker.io/ivorysql/pgbackrest:ubi9-2.60.1-6.0-1 configuration: - secret: name: ivyo-s3-creds diff --git a/internal/controller/ivorycluster/pgbackrest_test.go b/internal/controller/ivorycluster/pgbackrest_test.go index 9081ca3ab4..80415a6863 100644 --- a/internal/controller/ivorycluster/pgbackrest_test.go +++ b/internal/controller/ivorycluster/pgbackrest_test.go @@ -2102,7 +2102,7 @@ func TestReconcileCloudBasedDataSource(t *testing.T) { result: testResult{ configCount: 1, jobCount: 1, pvcCount: 1, expectedClusterCondition: nil, - conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = /pgbackrest/repo1\n\n [db]\n pg-version-force = 18\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", + conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = /pgbackrest/repo1\n\n [db]\n pg-version-force = 19\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", }, }, { desc: "global/configuration set", @@ -2119,7 +2119,7 @@ func TestReconcileCloudBasedDataSource(t *testing.T) { result: testResult{ configCount: 1, jobCount: 1, pvcCount: 1, expectedClusterCondition: nil, - conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = elephant\n\n [db]\n pg-version-force = 18\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", + conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = elephant\n\n [db]\n pg-version-force = 19\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", }, }, { desc: "invalid option: stanza", @@ -2134,7 +2134,7 @@ func TestReconcileCloudBasedDataSource(t *testing.T) { result: testResult{ configCount: 1, jobCount: 0, pvcCount: 1, expectedClusterCondition: nil, - conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = /pgbackrest/repo1\n\n [db]\n pg-version-force = 18\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", + conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = /pgbackrest/repo1\n\n [db]\n pg-version-force = 19\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", }, }, { desc: "cluster bootstrapped init condition missing", @@ -2153,7 +2153,7 @@ func TestReconcileCloudBasedDataSource(t *testing.T) { Reason: "ClusterAlreadyBootstrapped", Message: "The cluster is already bootstrapped", }, - conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = /pgbackrest/repo1\n\n [db]\n pg-version-force = 18\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", + conf: "|\n # Generated by ivory-operator. DO NOT EDIT.\n # Your changes will not be saved.\n\n [global]\n log-path = /pgdata/pgbackrest/log\n repo1-path = /pgbackrest/repo1\n\n [db]\n pg-version-force = 19\n pg1-path = /pgdata/pg13\n pg1-port = 5432\n pg1-socket-path = /tmp/postgres\n", }, }} diff --git a/internal/pgbackrest/config.go b/internal/pgbackrest/config.go index e3a096ab00..328ea6512b 100644 --- a/internal/pgbackrest/config.go +++ b/internal/pgbackrest/config.go @@ -310,7 +310,7 @@ func populatePGInstanceConfigurationMap( stanza.Set("pg1-path", pgdataDir) stanza.Set("pg1-port", fmt.Sprint(pgPort)) stanza.Set("pg1-socket-path", ivory.SocketDirectory) - stanza.Set("pg-version-force", "18") + stanza.Set("pg-version-force", "19") return iniSectionSet{ "global": global, DefaultStanzaName: stanza, diff --git a/internal/pgbackrest/config_test.go b/internal/pgbackrest/config_test.go index e99bd1ea77..286ce6ef31 100644 --- a/internal/pgbackrest/config_test.go +++ b/internal/pgbackrest/config_test.go @@ -153,7 +153,7 @@ repo4-s3-region = earth repo4-type = s3 [db] -pg-version-force = 18 +pg-version-force = 19 pg1-path = /pgdata/pg12 pg1-port = 2345 pg1-socket-path = /tmp/postgres diff --git a/internal/pgbackrest/pgbackrest.go b/internal/pgbackrest/pgbackrest.go index 45f7787967..e0ac0e0305 100644 --- a/internal/pgbackrest/pgbackrest.go +++ b/internal/pgbackrest/pgbackrest.go @@ -70,7 +70,7 @@ declare -r hash="$1" stanza="$2" message="$3" cmd="$4" if [[ "$(< /etc/pgbackrest/conf.d/config-hash)" != "${hash}" ]]; then printf >&2 "%s" "${message}"; exit 1; else - pgbackrest "${cmd}" --pg-version-force=18 --stanza="${stanza}" + pgbackrest "${cmd}" --pg-version-force=19 --stanza="${stanza}" fi ` if err := exec(ctx, nil, &stdout, &stderr, "bash", "-ceu", "--", diff --git a/internal/pgbackrest/pgbackrest_test.go b/internal/pgbackrest/pgbackrest_test.go index f4aab2338d..7748807981 100644 --- a/internal/pgbackrest/pgbackrest_test.go +++ b/internal/pgbackrest/pgbackrest_test.go @@ -38,7 +38,7 @@ declare -r hash="$1" stanza="$2" message="$3" cmd="$4" if [[ "$(< /etc/pgbackrest/conf.d/config-hash)" != "${hash}" ]]; then printf >&2 "%s" "${message}"; exit 1; else - pgbackrest "${cmd}" --pg-version-force=18 --stanza="${stanza}" + pgbackrest "${cmd}" --pg-version-force=19 --stanza="${stanza}" fi `, "-", "7f5d4d5bdc", "db", "ivory operator error: pgBackRest config hash mismatch", diff --git a/pkg/apis/ivory-operator.ivorysql.org/v1beta1/ivorycluster_types.go b/pkg/apis/ivory-operator.ivorysql.org/v1beta1/ivorycluster_types.go index fb48cd4e7a..4b2522d627 100644 --- a/pkg/apis/ivory-operator.ivorysql.org/v1beta1/ivorycluster_types.go +++ b/pkg/apis/ivory-operator.ivorysql.org/v1beta1/ivorycluster_types.go @@ -123,7 +123,7 @@ type IvoryClusterSpec struct { // The major version of PostgreSQL installed in the PostgreSQL image // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=10 - // +kubebuilder:validation:Maximum=18 + // +kubebuilder:validation:Maximum=19 // +operator-sdk:csv:customresourcedefinitions:type=spec,order=1 PostgresVersion int `json:"postgresVersion"` diff --git a/pkg/apis/ivory-operator.ivorysql.org/v1beta1/pgupgrade_types.go b/pkg/apis/ivory-operator.ivorysql.org/v1beta1/pgupgrade_types.go index f4593a0072..d8f43ffbe2 100644 --- a/pkg/apis/ivory-operator.ivorysql.org/v1beta1/pgupgrade_types.go +++ b/pkg/apis/ivory-operator.ivorysql.org/v1beta1/pgupgrade_types.go @@ -59,7 +59,7 @@ type IVYUpgradeSpec struct { // The major version of IvorySQL before the upgrade. // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=10 - // +kubebuilder:validation:Maximum=18 + // +kubebuilder:validation:Maximum=19 FromIvoryVersion int `json:"fromIvoryVersion"` // TODO(benjaminjb): define webhook validation to make sure @@ -70,7 +70,7 @@ type IVYUpgradeSpec struct { // The major version of IvorySQL to be upgraded to. // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=10 - // +kubebuilder:validation:Maximum=18 + // +kubebuilder:validation:Maximum=19 ToIvoryVersion int `json:"toIvoryVersion"` // The image name to use for IvorySQL containers after upgrade. diff --git a/testing/kuttl/e2e-other/exporter-upgrade/00--cluster.yaml b/testing/kuttl/e2e-other/exporter-upgrade/00--cluster.yaml index d0e3a9c3ed..ccdda28be9 100644 --- a/testing/kuttl/e2e-other/exporter-upgrade/00--cluster.yaml +++ b/testing/kuttl/e2e-other/exporter-upgrade/00--cluster.yaml @@ -3,8 +3,8 @@ kind: IvoryCluster metadata: name: exporter spec: - postgresVersion: 18 - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 + postgresVersion: 19 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1 instances: - name: instance1 dataVolumeClaimSpec: diff --git a/testing/kuttl/e2e-other/exporter-upgrade/02--update-cluster.yaml b/testing/kuttl/e2e-other/exporter-upgrade/02--update-cluster.yaml index 0032317802..40456d38e8 100644 --- a/testing/kuttl/e2e-other/exporter-upgrade/02--update-cluster.yaml +++ b/testing/kuttl/e2e-other/exporter-upgrade/02--update-cluster.yaml @@ -3,5 +3,5 @@ kind: IvoryCluster metadata: name: exporter spec: - postgresVersion: 18 - image: docker.io/ivorysql/ivorysql:ubi9-5.6-5.6-1 + postgresVersion: 19 + image: docker.io/ivorysql/ivorysql:ubi9-6.0-6.0-1