Skip to content

Commit 40b7674

Browse files
authored
Merge branch 'main' into K8SPSMDB-1296
2 parents 09a63a1 + 064d2b1 commit 40b7674

File tree

12 files changed

+37
-46
lines changed

12 files changed

+37
-46
lines changed

e2e-tests/monitoring-2-0/compare/statefulset_monitoring-cfg-oc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ spec:
283283
- mountPath: /etc/mongodb-ssl
284284
name: ssl
285285
readOnly: true
286+
- mountPath: /data/db
287+
name: mongod-data
288+
readOnly: true
286289
dnsPolicy: ClusterFirst
287290
initContainers:
288291
- command:

e2e-tests/monitoring-2-0/compare/statefulset_monitoring-cfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ spec:
284284
- mountPath: /etc/mongodb-ssl
285285
name: ssl
286286
readOnly: true
287+
- mountPath: /data/db
288+
name: mongod-data
289+
readOnly: true
287290
dnsPolicy: ClusterFirst
288291
initContainers:
289292
- command:

e2e-tests/monitoring-2-0/compare/statefulset_monitoring-mongos-oc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ spec:
278278
- mountPath: /etc/mongodb-ssl
279279
name: ssl
280280
readOnly: true
281+
- mountPath: /data/db
282+
name: mongod-data
283+
readOnly: true
281284
dnsPolicy: ClusterFirst
282285
initContainers:
283286
- command:

e2e-tests/monitoring-2-0/compare/statefulset_monitoring-mongos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ spec:
279279
- mountPath: /etc/mongodb-ssl
280280
name: ssl
281281
readOnly: true
282+
- mountPath: /data/db
283+
name: mongod-data
284+
readOnly: true
282285
dnsPolicy: ClusterFirst
283286
initContainers:
284287
- command:

e2e-tests/monitoring-2-0/compare/statefulset_monitoring-rs0-oc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ spec:
271271
- mountPath: /etc/mongodb-ssl
272272
name: ssl
273273
readOnly: true
274+
- mountPath: /data/db
275+
name: mongod-data
276+
readOnly: true
274277
dnsPolicy: ClusterFirst
275278
initContainers:
276279
- command:

e2e-tests/monitoring-2-0/compare/statefulset_monitoring-rs0.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ spec:
272272
- mountPath: /etc/mongodb-ssl
273273
name: ssl
274274
readOnly: true
275+
- mountPath: /data/db
276+
name: mongod-data
277+
readOnly: true
275278
dnsPolicy: ClusterFirst
276279
initContainers:
277280
- command:

e2e-tests/scheduled-backup/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ check_backup_count() {
2323
local expected=$2
2424

2525
local count=$(kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=${ancestor} | grep ready | wc -l)
26+
count="${count//[[:space:]]/}"
2627

2728
if [[ ${count} != ${expected} ]]; then
2829
echo "${ancestor}: Expected ${expected} backups but found ${count}."

pkg/controller/perconaservermongodbbackup/perconaservermongodbbackup_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ func (r *ReconcilePerconaServerMongoDBBackup) deleteFilesystemBackup(ctx context
593593
errB := bytes.Buffer{}
594594
err = r.clientcmd.Exec(ctx, &pod, naming.ContainerBackupAgent, cmd, nil, &outB, &errB, false)
595595
if err != nil {
596-
return errors.Wrap(err, "exec delete-backup")
596+
return errors.Wrapf(err, "exec delete-backup: stdout=%s, stderr=%s", outB.String(), errB.String())
597597
}
598598

599599
log.Info("Backup deleted")

pkg/psmdb/const.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616

1717
// MongodDataVolClaimName is a PVC Claim name
1818
MongodDataVolClaimName = "mongod-data"
19-
// MongodContainerDataDir is a mondo data path in container
19+
// MongodContainerDataDir is a mongo data path in container
2020
MongodContainerDataDir = "/data/db"
2121

2222
BinVolumeName = "bin"

pkg/psmdb/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func EntrypointInitContainer(cr *api.PerconaServerMongoDB, name, image string, p
1818
VolumeMounts: []corev1.VolumeMount{
1919
{
2020
Name: MongodDataVolClaimName,
21-
MountPath: "/data/db",
21+
MountPath: MongodContainerDataDir,
2222
},
2323
},
2424
Image: image,

0 commit comments

Comments
 (0)