filesystem: "root"
mode: 0644
path: "/etc/kubernetes/manifests/recycler-pod.yaml"
contents:
  inline: |
    apiVersion: v1
    kind: Pod
    metadata:
      name: recyler-pod
      namespace: openshift-infra
    spec:
      activeDeadlineSeconds: 60
      restartPolicy: Never
      serviceAccountName: pv-recycler-controller
      containers:
        -
          name: recyler-container
          image: "{{.Images.infraImageKey}}"
          command:
          - "/bin/bash"
          args:
          - "-c"
          - "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/*  && test -z \"$(ls -A /scrub)\" || exit 1"
          volumeMounts:
            -
              mountPath: /scrub
              name: vol
          securityContext:
            runAsUser: 0
      volumes:
        -
          name: vol
