diff options
author | 2025-03-03 14:45:58 +0100 | |
---|---|---|
committer | 2025-03-03 14:45:58 +0100 | |
commit | 80359b3457d0718d46591ecbb106ce21158c128c (patch) | |
tree | aca293852ad6c504685e2bee371f61c2ee73ad1b /kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates | |
parent | c31a375fd2aef6f62a23e018b44ebf0798529a0b (diff) |
[DCAE] Disable Istio Sidecar injection in HV-VES
Added possibility to set "polLabel" in deployment template and
disabled "isto-sidecar" injection in HV-VES collector
Issue-ID: OOM-3333
Change-Id: Ic5a62549bc0a00e1138f4319be6460a9c9476dc1
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates')
-rw-r--r-- | kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl index 101dc075f9..eefee769bd 100644 --- a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl +++ b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl @@ -254,6 +254,7 @@ post-processing. {{- $drNeedProvisioning := or .Values.drFeedConfig .Values.drSubConfig -}} {{- $dcaeName := print (include "common.fullname" .) }} {{- $dcaeLabel := (dict "dcaeMicroserviceName" $dcaeName) -}} +{{- $podLabels := default .Values.podLabels .labels -}} {{- $dot := . -}} apiVersion: apps/v1 kind: Deployment @@ -262,7 +263,11 @@ spec: replicas: 1 selector: {{- include "common.selectors" . | nindent 4 }} template: + {{- if $podLabels}} + metadata: {{- include "common.templateMetadata" (dict "dot" . "labels" $podLabels) | nindent 6 }} + {{- else }} metadata: {{- include "common.templateMetadata" . | nindent 6 }} + {{- end }} spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} |