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 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}" name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}"
namespace: "{{ .Values.k8sNamespace }}" namespace: "{{ .Values.k8sNamespace }}"
labels: labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app" app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}-app"
spec: spec:
template: template:
metadata: metadata:
...@@ -14,7 +14,7 @@ spec: ...@@ -14,7 +14,7 @@ spec:
environment: "{{ .Values.k8sEnvironment }}" environment: "{{ .Values.k8sEnvironment }}"
spec: spec:
containers: 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 }}" image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always imagePullPolicy: Always
args: {{ range splitList " " .Values.jobArgs -}} args: {{ range splitList " " .Values.jobArgs -}}
......
...@@ -13,6 +13,7 @@ k8sLimitsCpu: placeholder ...@@ -13,6 +13,7 @@ k8sLimitsCpu: placeholder
k8sLimitsMemory: placeholder k8sLimitsMemory: placeholder
jobArgs: placeholder # Filled dynamically by Import API jobArgs: placeholder # Filled dynamically by Import API
sessionId: placeholder # Filled dynamically by Import API
kafkaConfigs: placeholder kafkaConfigs: placeholder
inputTopicName: 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