File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed
Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 1414
1515DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
1616
17- source $DIR /setup.sh
18-
1917$CO_CMD delete configmap operator-conf
2018
2119$CO_CMD --namespace=$CO_NAMESPACE delete deployment postgres-operator
Original file line number Diff line number Diff line change @@ -19,23 +19,15 @@ import (
1919 "bytes"
2020 "encoding/json"
2121 log "github.com/Sirupsen/logrus"
22- "io/ioutil"
23- "text/template"
24- //"time"
25-
2622 crv1 "github.com/crunchydata/postgres-operator/apis/cr/v1"
2723 "github.com/crunchydata/postgres-operator/operator/pvc"
2824 "github.com/crunchydata/postgres-operator/util"
29-
30- "k8s.io/client-go/kubernetes"
31-
25+ "io/ioutil"
3226 meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
33- // "k8s.io/apimachinery/pkg/fields "
27+ "k8s.io/client-go/kubernetes "
3428 v1batch "k8s.io/client-go/pkg/apis/batch/v1"
35- //v1batch "k8s.io/api/batch/v1"
36-
3729 "k8s.io/client-go/rest"
38- //"k8s.io/client-go/tools/cache "
30+ "text/template "
3931)
4032
4133type jobTemplateFields struct {
Original file line number Diff line number Diff line change @@ -284,13 +284,13 @@ func getBackupParams(name string) (*crv1.Pgbackup, error) {
284284 spec .StorageSpec .AccessMode = viper .GetString ("BackupStorage.AccessMode" )
285285 spec .StorageSpec .Size = viper .GetString ("BackupStorage.Size" )
286286 spec .StorageSpec .StorageClass = viper .GetString ("BackupStorage.StorageClass" )
287- spec .StorageSpec .StorageType = viper .GetString ("BackupStorage.StorageTypeg " )
287+ spec .StorageSpec .StorageType = viper .GetString ("BackupStorage.StorageType " )
288288 spec .StorageSpec .SupplementalGroups = viper .GetString ("BackupStorage.SupplementalGroups" )
289289 spec .StorageSpec .Fsgroup = viper .GetString ("BackupStorage.Fsgroup" )
290290 spec .CCPImageTag = viper .GetString ("Cluster.CCPImageTag" )
291291 spec .BackupStatus = "initial"
292292 spec .BackupHost = "basic"
293- spec .BackupUser = "primary "
293+ spec .BackupUser = "primaryuser "
294294 spec .BackupPass = "password"
295295 spec .BackupPort = "5432"
296296
You can’t perform that action at this time.
0 commit comments