-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/e2e: check MantleRestore correctly restores replicated backups i…
…n both clusters Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
- Loading branch information
1 parent
8ee441d
commit 631465a
Showing
4 changed files
with
119 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: %s | ||
namespace: %s | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: %s | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: %s | ||
spec: | ||
securityContext: | ||
runAsUser: 10000 | ||
runAsGroup: 10000 | ||
containers: | ||
- name: ubuntu | ||
image: ubuntu:22.04 | ||
volumeMounts: | ||
- name: volume | ||
mountPath: /volume | ||
command: | ||
- bash | ||
- -c | ||
- | | ||
sleep infinity | ||
volumes: | ||
- name: volume | ||
persistentVolumeClaim: | ||
claimName: %s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: %s | ||
namespace: %s | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ubuntu | ||
image: ubuntu:22.04 | ||
command: | ||
- bash | ||
- -c | ||
- | | ||
dd if=/dev/urandom of=/volume/data bs=1K count=1 >&/dev/null | ||
sha256sum /volume/data | awk '{print $1}' | ||
volumeMounts: | ||
- name: volume | ||
mountPath: /volume | ||
restartPolicy: Never | ||
volumes: | ||
- name: volume | ||
persistentVolumeClaim: | ||
claimName: %s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters