File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "context"
55 "encoding/json"
66 "fmt"
7+ "strings"
8+
79 cpov1 "github.com/cybertec-postgresql/cybertec-pg-operator/pkg/apis/cpo.opensource.cybertec.at/v1"
810 spc "github.com/cybertec-postgresql/cybertec-pg-operator/pkg/spec"
911 "github.com/cybertec-postgresql/cybertec-pg-operator/pkg/util/constants"
@@ -13,7 +15,6 @@ import (
1315 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1416 "k8s.io/apimachinery/pkg/labels"
1517 "k8s.io/apimachinery/pkg/types"
16- "strings"
1718)
1819
1920const (
@@ -198,7 +199,7 @@ func (c *Cluster) generatePgbackrestRestoreConfigmap(restore *cpov1.Restore) (*v
198199
199200 optionsArray := make ([]string , 0 )
200201 for key , value := range restore .Options {
201- optionsArray = append (optionsArray , fmt .Sprintf ("--%s=%s " , key , value ))
202+ optionsArray = append (optionsArray , fmt .Sprintf ("--%s=\" %s \" " , key , value ))
202203 }
203204 options := strings .Join (optionsArray , " " )
204205 data ["restore_command" ] = fmt .Sprintf (" --repo=%v %s" ,
You can’t perform that action at this time.
0 commit comments