Verified Commit 20f10891 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

use distinct configmap for each newly deployed chart

parent 1135411d
Pipeline #37750 passed with stages
in 5 minutes
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config" name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}-config"
namespace: "{{ .Values.k8sNamespace }}" namespace: "{{ .Values.k8sNamespace }}"
data: data:
CLIENT_ID: "{{ .Values.clientId}}" CLIENT_ID: "{{ .Values.clientId}}"
......
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}-config"
namespace: "{{ .Values.k8sNamespace }}"
data:
CLIENT_ID: "{{ .Values.clientId}}"
TOPIC_IN: "{{ .Values.inputTopicName }}"
TOPIC_OUT: "{{ .Values.outputTopicName }}"
POLL_TIMEOUT: "{{ .Values.pollTimeout }}"
...@@ -29,7 +29,7 @@ spec: ...@@ -29,7 +29,7 @@ spec:
memory: "{{ .Values.k8sLimitsMemory }}" memory: "{{ .Values.k8sLimitsMemory }}"
envFrom: envFrom:
- configMapRef: - configMapRef:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config" name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-{{ .Values.sessionId }}-config"
- configMapRef: - configMapRef:
name: "{{ .Values.kafkaConfigs }}" name: "{{ .Values.kafkaConfigs }}"
restartPolicy: Never restartPolicy: Never
......
Supports Markdown
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