2020-10-08 13:41:12 +00:00
|
|
|
apiVersion: {{ template "apiVersion" . }}
|
|
|
|
kind: {{ .Values.workloadType }}
|
|
|
|
metadata:
|
|
|
|
name: {{ include "ix-chart.fullname" . }}
|
|
|
|
labels:
|
|
|
|
{{- include "ix-chart.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
{{- if eq (include "workloadIsDeployment" .) "true" }}
|
2020-10-08 13:45:19 +00:00
|
|
|
{{ include "deploymentSpec" . | nindent 2 }}
|
|
|
|
{{- else if eq (include "workloadIsCronJob" .) "true" }}
|
2020-10-08 13:41:12 +00:00
|
|
|
{{ include "cronJobSpec" . | nindent 2 }}
|
2020-10-08 14:58:19 +00:00
|
|
|
{{- else }}
|
2020-10-08 13:41:12 +00:00
|
|
|
{{ include "jobSpec" . | nindent 2 }}
|
|
|
|
{{- end }}
|