Adaptation of test env to helm chart
[nonrtric.git] / test / simulator-group / pvc-cleaner / pvc-cleaner.yaml
1 apiVersion: v1
2 kind: Pod
3 metadata:
4   name: pvc-cleaner
5   namespace: $PVC_CLEANER_NAMESPACE
6   labels:
7     run: $PVC_CLEANER_APP_NAME
8     autotest: PVCCLEANER
9 spec:
10   restartPolicy: Never
11   containers:
12   - name: pvc-cleaner
13     image: $PVC_CLEANER_IMAGE
14     command: ["/bin/sh","-c"]
15     args: ["rm -rf $PVC_CLEANER_RM_PATH/*"]
16     volumeMounts:
17     - mountPath: $PVC_CLEANER_RM_PATH
18       name: pvc-cleaner-m-vol
19   volumes:
20   - name: pvc-cleaner-m-vol
21     persistentVolumeClaim:
22       claimName: $PVC_CLEANER_CLAIMNAME