Files
cozystack/packages/system/postgres-operator/tests/cnpg-version_test.yaml
T
Alexey Artamonov 2258d2c640 fix(postgres-operator): align CNPG operator and CRDs to 1.28.2 for PVC resize-deadlock fix
Raises the CloudNativePG operator image and its CRDs together to 1.28.2, which carries the PVC resize-deadlock fix (cloudnative-pg#9980 / #9981): after a simultaneous resources+size change the operator deletes the sole primary Pod, leaves the PVC in the resizing class, and never recreates the Pod, wedging the cluster.

Upstream publishes a chart only per minor .0/.1, so there is no 1.28.2 chart on the 1.28 line. Following #3526/#3528, patches/cloudnative-pg-1.28.2.patch (applied by make update) raises the vendored chart's appVersion and CRDs from 1.28.1 to 1.28.2 in lockstep; the operator image follows appVersion, so no image.tag pin. Verified #3479-safe: no CRD status field changes between 1.28.1 and 1.28.2 (only the extensions spec grows). Backportable to release-1.6.

Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
(cherry picked from commit bcb36262ef)
2026-08-04 15:18:42 +00:00

39 lines
1.3 KiB
YAML

suite: CNPG operator and CRDs stay aligned
templates:
- charts/cloudnative-pg/templates/deployment.yaml
- charts/cloudnative-pg/templates/rbac.yaml
- charts/cloudnative-pg/templates/config.yaml
- charts/cloudnative-pg/templates/monitoring-configmap.yaml
- charts/cloudnative-pg/templates/crds/crds.yaml
release:
name: postgres-operator
namespace: cozy-postgres-operator
tests:
- it: runs the CNPG 1.28.2 operator image
template: charts/cloudnative-pg/templates/deployment.yaml
asserts:
- equal:
path: spec.template.spec.containers[0].image
value: ghcr.io/cloudnative-pg/cloudnative-pg:1.28.2
- equal:
path: spec.template.spec.containers[0].env[0].value
value: ghcr.io/cloudnative-pg/cloudnative-pg:1.28.2
- equal:
path: metadata.labels["app.kubernetes.io/version"]
value: 1.28.2
- it: ships the CNPG 1.28.2 CRDs patched in lockstep with the operator
template: charts/cloudnative-pg/templates/crds/crds.yaml
asserts:
- documentIndex: 0
equal:
path: metadata.annotations["controller-gen.kubebuilder.io/version"]
value: v0.20.1
- documentIndex: 0
equal:
path: spec.versions[0].schema.openAPIV3Schema.properties.status.properties.instanceID.properties.sessionID.type
value: string