BjornMagnussonXA | a549157 | 2021-05-04 09:21:24 +0200 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Pod |
| 3 | metadata: |
| 4 | name: pvc-cleaner |
| 5 | namespace: $PVC_CLEANER_NAMESPACE |
BjornMagnussonXA | 663566c | 2021-11-08 10:25:07 +0100 | [diff] [blame] | 6 | labels: |
| 7 | run: $PVC_CLEANER_APP_NAME |
| 8 | autotest: PVCCLEANER |
BjornMagnussonXA | a549157 | 2021-05-04 09:21:24 +0200 | [diff] [blame] | 9 | spec: |
| 10 | restartPolicy: Never |
| 11 | containers: |
| 12 | - name: pvc-cleaner |
BjornMagnussonXA | 663566c | 2021-11-08 10:25:07 +0100 | [diff] [blame] | 13 | image: $PVC_CLEANER_IMAGE |
BjornMagnussonXA | a549157 | 2021-05-04 09:21:24 +0200 | [diff] [blame] | 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 |