# A container to just get into the coreos-assembler environment
# (container + mounted physical volume under /srv/)
apiVersion: v1
metadata:
    name: coreos-assembler-sleep
kind: Pod
spec:
  containers:
   - name: coreos-assembler-sleep
     image: coreos-assembler:main
     imagePullPolicy: Always
     workingDir: /srv/
     command: ['/usr/bin/dumb-init']
     args: ['sleep', 'infinity']
     env:
       - name: AWS_FCOS_BUILDS_BOT_CONFIG
         value: /.aws-fcos-builds-bot-config/config
       - name: AWS_FCOS_KOLA_BOT_CONFIG
         value: /.aws-fcos-kola-bot-config/config
     volumeMounts:
     - name: data
       mountPath: /srv/
     - name: aws-fcos-builds-bot-config
       mountPath: /.aws-fcos-builds-bot-config/
       readOnly: true
     - name: aws-fcos-kola-bot-config
       mountPath: /.aws-fcos-kola-bot-config/
       readOnly: true
     securityContext:
       privileged: false
  volumes:
  - name: data
    persistentVolumeClaim:
      claimName: coreos-assembler-claim2
  # This secret is used for uploading to AWS
  - name: aws-fcos-builds-bot-config
    secret:
      secretName: aws-fcos-builds-bot-config
      optional: true
  # This secret is used for running aws kola tests
  - name: aws-fcos-kola-bot-config
    secret:
      secretName: aws-fcos-kola-bot-config
      optional: true
