Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: skip not found db (#4944)

p0ny17449fded6ef
diff --git a/backend/utils/utils.go b/backend/utils/utils.go
index 9ddf960c06..2c721403f6 100644
--- a/backend/utils/utils.go
+++ b/backend/utils/utils.go
@@ -278,6 +278,10 @@ func GetDatabaseMatrixFromDeploymentSchedule(schedule *api.DeploymentSchedule, d
if _, ok := idsSeen[database.UID]; ok {
continue
}
+ // Skip if the database is not found.
+ if database.SyncState == api.NotFound {
+ continue
+ }
if isMatchExpressions(idToLabels[database.UID], deployment.Spec.Selector.MatchExpressions) {
matchedDatabaseList = append(matchedDatabaseList, database.UID)