func (r *ReconcileBackup) updateBackupStatus(request reconcile.Request) error {
	bkp, err := service.FetchBackupCR(request.Name, request.Namespace, r.client)
	if err != nil {
		return err
	}
	statusMsgUpdate := statusOk
	if err := r.isAllCreated(bkp); err != nil {
		statusMsgUpdate = err.Error()
	}
	if err := r.insertUpdateBackupStatus(bkp, statusMsgUpdate); err != nil {
		return err
	}
	return nil
}
updateAppStatus returns error when status regards  all required resource could not be updated with OK
package backup
import (
	"context"
	"fmt"
	"github.com/dev4devs-com/postgresql-operator/pkg/apis/postgresql/v1alpha1"
	"github.com/dev4devs-com/postgresql-operator/pkg/service"
	"github.com/dev4devs-com/postgresql-operator/pkg/utils"
	"k8s.io/api/batch/v1beta1"
	corev1 "k8s.io/api/core/v1"
	"reflect"
	"sigs.k8s.io/controller-runtime/pkg/reconcile"
)
const statusOk = "OK"