Skip to content

Commit

Permalink
ci/cli: Add etcd snapshot for downstream clusters
Browse files Browse the repository at this point in the history
This is needed to be able to run a migration test.

Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Dec 16, 2024
1 parent b3248c5 commit d45e8d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/assets/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ metadata:
spec:
rkeConfig:
etcd:
disableSnapshots: true
disableSnapshots: false
snapshotRetention: 5
snapshotScheduleCron: 0 */5 * * *
machineGlobalConfig:
cni: canal
disable:
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/backup-restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var _ = Describe("E2E - Test full Backup/Restore", Label("test-full-backup-resto
err := tools.Sed("%BACKUP_FILE%", backupFile, restoreYaml)
Expect(err).To(Not(HaveOccurred()))

// "prune" option should be set to true here
// "prune" option should be set to false in case of migration test
err = tools.Sed("%PRUNE%", "false", restoreYaml)
Expect(err).To(Not(HaveOccurred()))

Expand Down

0 comments on commit d45e8d6

Please sign in to comment.