Allow to set the extension versions in the SGDbOps minor version upgrade
Extension builds may run only on a range of Postgres minors (postgresFromVersion / postgresToVersion in the extensions catalog v3, see #3310). A cluster that sets the version of an extension whose build does not run on the target minor of a minor version upgrade fails to reconcile once its Postgres version changes, and the SGDbOps gives no way to change that extension version.
- Add
spec.minorVersionUpgrade.postgresExtensionsto SGDbOps, likespec.majorVersionUpgrade.postgresExtensions: the extension versions that replace those of the SGCluster when its Postgres version is changed to the target minor. - Reject an SGDbOps minor version upgrade when an extension of the cluster (or of
postgresExtensions) has no build for the target Postgres version, listing the available versions, and fillspec.minorVersionUpgrade.toInstallPostgresExtensionslike the major version upgrade does. - Do the same for the SGShardedDbOps minor version upgrade (
spec.minorVersionUpgrade.postgresExtensionsandspec.minorVersionUpgrade.toInstallPostgresExtensions), applying the extension versions to the SGShardedCluster and to the SGDbOps it creates for each SGCluster.
Edited by Matteo Melli