Skip to content

Commit 5f423a1

Browse files
1gtmEmruz Hossain
andauthored
[cherry-pick] Support multiple commands in backup/restore pipeline (#823) (#831)
/cherry-pick Signed-off-by: Emruz Hossain <emruz@appscode.com> Co-authored-by: Emruz Hossain <emruz@appscode.com>
1 parent 16e6340 commit 5f423a1

File tree

75 files changed

+2229
-2587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2229
-2587
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
helm repo add appscode https://charts.appscode.com/stable/
8282
helm repo update
8383
helm install stash-crds appscode/stash-crds
84+
helm install kubedb-crds appscode/kubedb-crds
8485
helm install kmodules-crds appscode/kmodules-crds
8586
kubectl wait --for=condition=NamesAccepted crds --all --timeout=5m
8687

docs/examples/backup/replicaset/mongodb-replicaset-ssl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: sample-mgo-rs-ssl

docs/examples/backup/replicaset/mongodb-replicaset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: sample-mgo-rs

docs/examples/backup/sharding/mongodb-sharding-ssl.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: sample-mgo-sh-ssl
@@ -15,8 +15,6 @@ spec:
1515
storageClassName: standard
1616
mongos:
1717
replicas: 2
18-
strategy:
19-
type: RollingUpdate
2018
shard:
2119
replicas: 3
2220
shards: 3

docs/examples/backup/sharding/mongodb-sharding.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: sample-mgo-sh
@@ -15,8 +15,6 @@ spec:
1515
storageClassName: standard
1616
mongos:
1717
replicas: 2
18-
strategy:
19-
type: RollingUpdate
2018
shard:
2119
replicas: 3
2220
shards: 3

docs/examples/backup/standalone/mongodb-ssl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: sample-mongodb-ssl

docs/examples/backup/standalone/mongodb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: sample-mongodb
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: restored-mgo-rs
55
namespace: demo
66
spec:
77
version: "4.1.13"
8-
databaseSecret:
9-
secretName: sample-mgo-rs-auth
8+
authSecret:
9+
name: sample-mgo-rs-auth
1010
replicas: 3
1111
replicaSet:
1212
name: rs0
@@ -19,5 +19,4 @@ spec:
1919
storage: 1Gi
2020
terminationPolicy: WipeOut
2121
init:
22-
stashRestoreSession:
23-
name: sample-mgo-rs-restore
22+
waitForInitialRestore: true
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
apiVersion: kubedb.com/v1alpha1
1+
apiVersion: kubedb.com/v1alpha2
22
kind: MongoDB
33
metadata:
44
name: restored-mongodb
55
namespace: demo
66
spec:
77
version: "4.1.13"
88
storageType: Durable
9-
databaseSecret:
10-
secretName: sample-mgo-rs-auth
9+
authSecret:
10+
name: sample-mgo-rs-auth
1111
storage:
1212
storageClassName: "standard"
1313
accessModes:
@@ -16,6 +16,5 @@ spec:
1616
requests:
1717
storage: 1Gi
1818
init:
19-
stashRestoreSession:
20-
name: sample-mongodb-restore
19+
waitForInitialRestore: true
2120
terminationPolicy: WipeOut

docs/examples/restore/replicaset/restoresession-replicaset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: sample-mgo-rs-restore
55
namespace: demo
66
labels:
7-
kubedb.com/kind: MongoDB
7+
app.kubernetes.io/name: mongodbs.kubedb.com
88
spec:
99
task:
1010
name: mongodb-restore-4.1.13-v5

0 commit comments

Comments
 (0)