func (r *ReconcileDatabase) manageResources(db *v1alpha1.Database) error {
	dep, err := service.FetchDeployment(db.Name, db.Namespace, r.client)
	if err != nil {
		return err
	}
	r.ensureDepSize(db, dep)
	return nil
}
manageResources will ensure that the resource are with the expected values in the cluster
package database
import (
	"context"
	"github.com/dev4devs-com/postgresql-operator/pkg/apis/postgresql/v1alpha1"
	"github.com/dev4devs-com/postgresql-operator/pkg/service"
	"k8s.io/api/apps/v1"
)