This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
job.yaml
54 lines (53 loc) · 1.83 KB
/
job.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "engine-poc.fullname" . }}
labels:
{{- include "engine-poc.labels" . | nindent 4 }}
spec:
template:
spec:
volumes:
- name: cache
emptyDir: {}
serviceAccountName: {{ include "engine-poc.serviceAccountName" . }}
restartPolicy: Never
containers:
- name: {{ .Chart.Name }}
image: {{ .Values.image.repository }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: LOGGING_FORMAT
value: "color"
{{- if .Values.engine.loggingLevel }}
- name: LOGGING_LEVEL
value: {{ .Values.engine.loggingLevel }}
{{- end }}
{{- if .Values.engine.rootFSDir }}
- name: ROOT_FS_DIR
value: {{ .Values.engine.rootFSDir }}
{{- end }}
{{- if .Values.engine.workspaceDir }}
- name: WORKSPACE_DIR
value: {{ .Values.engine.workspaceDir }}
{{- end }}
{{- if .Values.engine.extractLayers }}
- name: EXTRACT_LAYERS
value: {{ .Values.engine.extractLayers | quote }}
{{- end }}
{{- if .Values.engine.filesToSearch }}
- name: FILES_TO_SEARCH
value: {{ .Values.engine.filesToSearch }}
{{- end }}
{{- if .Values.engine.dockerfilenameToBuild }}
- name: DOCKERFILE_NAME
value: {{ .Values.engine.dockerfilenameToBuild }}
{{- end }}
{{- if .Values.engine.metadataTomlFileName }}
- name: METADATA_FILE_NAME
value: {{ .Values.engine.metadataTomlFileName }}
{{- end }}
workingDir: /workspace
volumeMounts:
- name: cache
mountPath: /cache