You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create Backup with deployment but only name contains "kahu", keyword but exclude the name "kahu-restore-deployment" and then restore the created backup
#156
Open
Roshini0220 opened this issue
Apr 18, 2023
· 0 comments
Get inside nfs server pod and check for the content inside mount path given
(use command kubectl exec -ti -n test-kahu /bin/sh)
Create a restore CR on new namespace (restore-ns)
apiVersion: kahu.io/v1
kind: Restore
metadata:
name: restore-Kahu-0001
Spec:
backupName: backup-Kahu-0001
namespaceMapping:
test-ns : restore-ns
Expected Result:
In step 2,
a) Verify that backup stage is Finished and State is Completed
b) Verify the resource list in status shows all the required resources
In step 3, verify that
a) tar file is created with name of backup
b) After untar file, All deployment has "kahu" keywork of default namespace is backuped.
For example:
kahu-123
123-kahu
123-kahu-456
but it should not contain "kahu-restore-deployment" name
The deployments that are backed up to be up in restore-ns namespace Why this issue to fixed / feature is needed(give scenarios or use cases):
This is a testcase which is to automated to make surepod is properly backed up and restored How to reproduce, in case of a bug: Other Notes / Environment Information: (Please give the env information, log link or any
useful information for this issue) @kalaiselvikks76
The text was updated successfully, but these errors were encountered:
Issue/Feature Description:
Testcase Precondition:
a. backup service
b. Meta service with nfs provider
c. nfs-server
some of the kubernetes resources
5.Namespace restore-ns is created
Testcase steps:
(use kubectl create -f <backup.yaml>)
apiVersion: kahu.io/v1
kind: Backup
metadata:
name: backup-Kahu-0001
spec:
includeNamespaces: [test-ns]
metadataLocation: nfs
includeResources:
kind: Deployment
isRegex: true
excludeResources:
kind: Deployment
isRegex: false
(use command kubectl exec -ti -n test-kahu /bin/sh)
apiVersion: kahu.io/v1
kind: Restore
metadata:
name: restore-Kahu-0001
Spec:
backupName: backup-Kahu-0001
namespaceMapping:
test-ns : restore-ns
Expected Result:
a) Verify that backup stage is Finished and State is Completed
b) Verify the resource list in status shows all the required resources
a) tar file is created with name of backup
b) After untar file, All deployment has "kahu" keywork of default namespace is backuped.
For example:
but it should not contain "kahu-restore-deployment" name
Why this issue to fixed / feature is needed(give scenarios or use cases):
This is a testcase which is to automated to make surepod is properly backed up and restored
How to reproduce, in case of a bug:
Other Notes / Environment Information: (Please give the env information, log link or any
useful information for this issue)
@kalaiselvikks76
The text was updated successfully, but these errors were encountered: