diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a999478..5acd837e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [MAJOR.MINOR.PATCH] - YYYY-MM-DD +- Fix `PostgreSQL`: wait for a valid backup to create read replica +- Fix `ClickhouseGrant`: grant privileges for an unknown table (Clickhouse can do that) +- Fix `ClickhouseGrant`: track the state to revoke only known privileges + ## v0.23.0 - 2024-07-12 - Ignore `http.StatusBadRequest` on `ClickhouseGrant` deletion @@ -9,8 +13,6 @@ - Fix `ClickhouseGrant` invalid remote and local privileges comparison - Fix `ClickhouseGrant`: doesn't escape role name to grant - Fix `ClickhouseUser`: password was reset due to an incorrect processing cycle -- Fix `ClickhouseGrant`: grant privileges for an unknown table (Clickhouse can do that) -- Fix `ClickhouseGrant`: track the state to revoke only known privileges ## v0.22.0 - 2024-07-02 diff --git a/controllers/generic_service_handler.go b/controllers/generic_service_handler.go index 0dc97793..85226751 100644 --- a/controllers/generic_service_handler.go +++ b/controllers/generic_service_handler.go @@ -236,6 +236,12 @@ func (h *genericServiceHandler) checkPreconditions(ctx context.Context, avn *aiv if !r || err != nil { return false, err } + + // Covers error "No valid backups for service" + list, err := avnGen.ServiceBackupsGet(ctx, spec.Project, s.SourceServiceName) + if len(list) == 0 || err != nil { + return false, err + } } } return true, nil