fix restored Deployment to not look for an xlog PVC, xlog PVCs are not going to be present for a backrest cluster
@@ -20,10 +20,10 @@ import (
"encoding/json"
"errors"
- log "github.com/sirupsen/logrus"
crv1 "github.com/crunchydata/postgres-operator/apis/cr/v1"
"github.com/crunchydata/postgres-operator/kubeapi"
"github.com/crunchydata/postgres-operator/operator"
+ log "github.com/sirupsen/logrus"
//"github.com/crunchydata/postgres-operator/operator/cluster"
"os"
@@ -388,7 +388,8 @@ func CreateRestoredDeployment(restclient *rest.RESTClient, cluster *crv1.Pgclust
archiveMode := "on"
xlogdir := "false"
archiveTimeout := cluster.Spec.UserLabels[util.LABEL_ARCHIVE_TIMEOUT]
- archivePVCName := cluster.Spec.Name + "-xlog"
+ //archivePVCName := cluster.Spec.Name + "-xlog"
+ archivePVCName := ""
backrestPVCName := cluster.Spec.Name + "-backrestrepo"
var affinityStr string
