Skip to content

Commit 4cdfdd8

Browse files
authored
fix(postgres): fixed potential panic in PostgreSQL controller (#1034)
1 parent ad49deb commit 4cdfdd8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [MAJOR.MINOR.PATCH] - YYYY-MM-DD
44

5+
- Fix `PostgreSQL`: resolved panic during upgrade check task fails
6+
57
## v0.33.0 - 2025-09-30
68

79
- **DEPRECATION**: `AlloyDBOmni` is deprecated and entering its end-of-life cycle. See <https://aiven.io/docs/platform/reference/end-of-life> for details

controllers/postgresql_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (a *postgreSQLAdapter) performUpgradeTaskIfNeeded(ctx context.Context, avnG
128128
finalTaskResult, err := waitForTaskToComplete(ctx, func() (bool, *service.ServiceTaskGetOut, error) {
129129
t, getErr := avnGen.ServiceTaskGet(ctx, a.getServiceCommonSpec().Project, a.getObjectMeta().Name, task.TaskId)
130130
if getErr != nil {
131-
return true, nil, fmt.Errorf("error fetching service task %s: %w", t.TaskId, getErr)
131+
return true, nil, fmt.Errorf("error fetching service task %s: %w", task.TaskId, getErr)
132132
}
133133

134134
if !t.Success {

0 commit comments

Comments
 (0)