Skip to content

Commit f3c6bb7

Browse files
committed
fix: minor version upgrade SGDbOps fails to perform minor version upgrade
1 parent 40555be commit f3c6bb7

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

stackgres-k8s/e2e/spec/dbops-minor-version-upgrade

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ check_minor_version_upgrade() {
7878

7979
assert_dbops_completion "$DBOPS_NAME" "$CLUSTER_NAMESPACE" "$((E2E_TIMEOUT * 2))"
8080

81+
if [ "$(kubectl get pod -n "$CLUSTER_NAMESPACE" \
82+
-l "app=StackGresCluster,stackgres.io/cluster-name=$CLUSTER_NAME,stackgres.io/cluster=true"
83+
--template '{{ range .spec.containers }}{{ printf "%s\n" .image }}{{ end }}' \
84+
| grep ".-pg${E2E_MINOR_TARGET_POSTGRES_VERSION}-" \
85+
| wc -l)" = 2 ]
86+
then
87+
success "Postgres minor version was updated"
88+
else
89+
fail "Postgres minor version was not updated"
90+
fi
91+
8192
check_mock_data_samehost "$CLUSTER_NAME"
8293
wait_until check_mock_data_replication "$CLUSTER_NAME"
8394
}

stackgres-k8s/src/common/src/main/resources/crds/SGCluster.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,14 +2585,6 @@ spec:
25852585
type: string
25862586
description: |
25872587
The primary instance that this operation is targetting
2588-
sourcePostgresVersion:
2589-
type: string
2590-
description: |
2591-
Postgres version that is currently running on the cluster
2592-
targetPostgresVersion:
2593-
type: string
2594-
description: |
2595-
The desired Postgres version for the cluster
25962588
securityUpgrade:
25972589
type: object
25982590
description: |

0 commit comments

Comments
 (0)