blob: f379bffb8226cb75bcf760d0fe73e2515cc3c16a [file] [log] [blame]
apiVersion: batch/v1
kind: Job
metadata:
name: openbmc${BUILD_ID}-${target}
namespace: ${namespace}
labels:
app: openbmc
stage: build
spec:
template:
metadata:
name: ${podname}
labels:
target: ${target}
spec:
nodeSelector:
beta.kubernetes.io/arch: ${ARCH}
volumes:
- name: workspace
persistentVolumeClaim:
claimName: ${wclaim}
- name: sscdir
persistentVolumeClaim:
claimName: ${sclaim}
restartPolicy: Never
hostNetwork: True
containers:
- image: ${imgname}
name: builder
command: ["/bin/bash","-c"]
args: ["sleep 2h"]
workingDir: ${HOME}
env:
- name: WORKSPACE
value: ${WORKSPACE}
- name: builddir
value: ${builddir}
securityContext:
capabilities:
add:
- SYS_ADMIN
volumeMounts:
- name: workspace
mountPath: ${HOME}/workspace
- name: sscdir
mountPath: ${sscdir}
imagePullSecrets:
- name: ${imgplsec}