Skip to content

Commit 4df6122

Browse files
author
jmccormick2001
committed
update to version 3.4.0, fix --archive and xlogdir env var support, make --archive and --pgbackrest exclusive of each other, remove old gluster pvc example
1 parent 39da671 commit 4df6122

File tree

12 files changed

+34
-44
lines changed

12 files changed

+34
-44
lines changed

apiserver/backupservice/backupimpl.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ func CreateBackup(request *msgs.CreateBackupRequest) msgs.CreateBackupResponse {
183183
//DeleteBackup(arg)
184184
err = kubeapi.Deletepgbackup(apiserver.RESTClient, arg, apiserver.Namespace)
185185

186-
if err != nil {
187-
log.Error(err)
188-
resp.Results = append(resp.Results, "error getting pgbackup for "+arg)
189-
break
190-
}
186+
if err != nil {
187+
log.Error(err)
188+
resp.Results = append(resp.Results, "error getting pgbackup for "+arg)
189+
break
190+
}
191191
}
192192

193193
// Create an instance of our CRD

apiserver/clusterservice/clusterimpl.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,13 @@ func CreateCluster(request *msgs.CreateClusterRequest) msgs.CreateClusterRespons
553553
userLabelsMap[util.LABEL_SERVICE_TYPE] = request.ServiceType
554554
}
555555

556+
if request.ArchiveFlag && request.BackrestFlag {
557+
resp.Status.Code = msgs.Error
558+
resp.Status.Msg = "error --archive and --pgbackrest flags are mutually exclusive, use one or the other."
559+
560+
return resp
561+
}
562+
556563
if request.ArchiveFlag {
557564
userLabelsMap[util.LABEL_ARCHIVE] = "true"
558565
log.Debug("archive set to true in user labels")

apiservermsgs/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717

1818
import ()
1919

20-
const PGO_VERSION = "3.4.0-rc3"
20+
const PGO_VERSION = "3.4.0"
2121

2222
// Ok status
2323
const Ok = "ok"

conf/postgres-operator/cluster/1/cluster-deployment-1.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
}, {
8989
"name": "ARCHIVE_TIMEOUT",
9090
"value": "{{.ArchiveTimeout}}"
91+
}, {
92+
"name": "XLOGDIR",
93+
"value": "{{.XLOGDir}}"
9194
}, {
9295
"name": "PGHOST",
9396
"value": "/tmp"

conf/postgres-operator/pgo.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Cluster:
44
CCPImagePrefix: crunchydata
55
Metrics: false
66
Badger: false
7-
CCPImageTag: rhel7-10.6-2.2.0-rc8
7+
CCPImageTag: centos7-10.6-2.2.0
88
Port: 5432
99
User: testuser
1010
Database: userdb
@@ -19,9 +19,9 @@ Cluster:
1919
Autofail: false
2020
LogStatement: none
2121
LogMinDurationStatement: 60000
22-
PrimaryStorage: storageos
23-
BackupStorage: storageos
24-
ReplicaStorage: storageos
22+
PrimaryStorage: hostpathstorage
23+
BackupStorage: hostpathstorage
24+
ReplicaStorage: hostpathstorage
2525
Storage:
2626
hostpathstorage:
2727
AccessMode: ReadWriteMany
@@ -62,4 +62,4 @@ Pgo:
6262
LSPVCTemplate: /pgo-config/pgo.lspvc-template.json
6363
LoadTemplate: /pgo-config/pgo.load-template.json
6464
COImagePrefix: crunchydata
65-
COImageTag: rhel7-3.4.0-rc3
65+
COImageTag: centos7-3.4.0

examples/gluster/gluster-storage-class.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/gluster/test-pvc.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/load/sample-json-load-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
COImagePrefix: crunchydata
2-
COImageTag: rhel7-3.4.0-rc3
2+
COImageTag: centos7-3.4.0
33
DbDatabase: userdb
44
DbUser: postgres
55
DbPort: 5432

examples/load/sample-load-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
COImagePrefix: crunchydata
2-
COImageTag: centos7-3.4.0-rc3
2+
COImageTag: centos7-3.4.0
33
DbDatabase: userdb
44
DbUser: postgres
55
DbPort: 5432

examples/quickstart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ echo $CO_BASEOS is the baseos entered | tee -a $LOG
3131
if [[ "$CO_VERSION" != "" ]]; then
3232
echo "CO_VERSION is set to " $CO_VERSION
3333
else
34-
export CO_VERSION=3.4.0-rc2
34+
export CO_VERSION=3.4.0
3535
echo -n "Which Operator version do you want to install? ["$CO_VERSION"]"
3636
read REPLY
3737
if [[ "$REPLY" != "" ]]; then
@@ -57,7 +57,7 @@ echo $CO_NAMESPACE is the namespace entered | tee -a $LOG
5757
if [[ "$CCP_IMAGE_TAG" != "" ]]; then
5858
echo "CCP_IMAGE_TAG is set to " $CCP_IMAGE_TAG
5959
else
60-
export CCP_IMAGE_TAG=$CO_BASEOS-10.5-2.2.0-rc7
60+
export CCP_IMAGE_TAG=$CO_BASEOS-10.6-2.2.0
6161
echo -n "Which CCP image tag do you want to use? ["$CCP_IMAGE_TAG"]"
6262
read REPLY
6363
if [[ "$REPLY" != "" ]]; then

0 commit comments

Comments
 (0)