Updated tests PMS persistency
Replaced kubeproxy with more efficient proxy
Issue-ID: NONRTRIC-486
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: Ib976cc2b2ef4856ba4c2665c90cf6b6525972f14
diff --git a/test/simulator-group/pvc-cleaner/pvc-cleaner.yaml b/test/simulator-group/pvc-cleaner/pvc-cleaner.yaml
new file mode 100644
index 0000000..790ee87
--- /dev/null
+++ b/test/simulator-group/pvc-cleaner/pvc-cleaner.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: pvc-cleaner
+ namespace: $PVC_CLEANER_NAMESPACE
+spec:
+ restartPolicy: Never
+ containers:
+ - name: pvc-cleaner
+ image: "ubuntu:20.10"
+ command: ["/bin/sh","-c"]
+ args: ["rm -rf $PVC_CLEANER_RM_PATH/*"]
+ volumeMounts:
+ - mountPath: $PVC_CLEANER_RM_PATH
+ name: pvc-cleaner-m-vol
+ volumes:
+ - name: pvc-cleaner-m-vol
+ persistentVolumeClaim:
+ claimName: $PVC_CLEANER_CLAIMNAME
\ No newline at end of file