Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Verified Commit 1135411d authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

use sessionId for building unique id

parent 14449988
Pipeline #37739 passed with stages
in 4 minutes and 15 seconds
apiVersion: batch/v1
kind: Job
metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}"
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}"
namespace: "{{ .Values.k8sNamespace }}"
labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app"
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}-app"
spec:
template:
metadata:
......@@ -14,7 +14,7 @@ spec:
environment: "{{ .Values.k8sEnvironment }}"
spec:
containers:
- name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-container"
- name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
args: {{ range splitList " " .Values.jobArgs -}}
......
......@@ -13,6 +13,7 @@ k8sLimitsCpu: placeholder
k8sLimitsMemory: placeholder
jobArgs: placeholder # Filled dynamically by Import API
sessionId: placeholder # Filled dynamically by Import API
kafkaConfigs: placeholder
inputTopicName: placeholder
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment