mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
feat(e2e-test): Add e2e-tests for zfs-localpv (#298)
Signed-off-by: w3aman <aman.gupta@mayadata.io>
This commit is contained in:
parent
53f872fcf1
commit
4e73638b5a
137 changed files with 8745 additions and 0 deletions
|
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: app-busybox
|
||||
labels:
|
||||
app: raw-block-vol
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: raw-block-vol
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: raw-block-vol
|
||||
spec:
|
||||
containers:
|
||||
- name: app-busybox
|
||||
imagePullPolicy: IfNotPresent
|
||||
image: gcr.io/google-containers/busybox
|
||||
command: ["/bin/sh"]
|
||||
args: ["-c", "while true; do sleep 10;done"]
|
||||
env:
|
||||
volumeDevices:
|
||||
- name: data-raw-block-vol
|
||||
devicePath: /dev/sdc
|
||||
|
||||
volumeMounts:
|
||||
- name: data-mount-vol
|
||||
mountPath: /busybox
|
||||
|
||||
volumes:
|
||||
- name: data-raw-block-vol
|
||||
persistentVolumeClaim:
|
||||
claimName: block-vol-pvc
|
||||
|
||||
- name: data-mount-vol
|
||||
hostPath:
|
||||
path: /raw_block_volume
|
||||
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: block-vol-pvc
|
||||
spec:
|
||||
volumeMode: Block
|
||||
storageClassName: {{ storage_class }}
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ pvc_size }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue