diff --git a/pkg/cluster/controllers/database/update.go b/pkg/cluster/controllers/database/update.go index 8a5ac428b..63e89252b 100644 --- a/pkg/cluster/controllers/database/update.go +++ b/pkg/cluster/controllers/database/update.go @@ -35,7 +35,9 @@ func (p *PostgreSQLController) Update(ctx context.Context, harborcluster *goharb FromUnstructured(expectUnstructuredCR.UnstructuredContent(), &expectCR); err != nil { return databaseNotReadyStatus(DefaultUnstructuredConverterError, err.Error()), err } - + + expectCR.SetOwnerReferences(actualCR.GetOwnerReferences()) + if !common.Equals(ctx, p.Scheme, harborcluster, &actualCR) { p.Log.Info( "Update Database resource",