[PLATFORM] Fix assumption abour serviceMesh 71/142871/1 master
authorMarek Szwalkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
Thu, 8 Jan 2026 12:59:58 +0000 (13:59 +0100)
committerMarek Szwalkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
Thu, 8 Jan 2026 13:00:10 +0000 (14:00 +0100)
In default values there is no service mesh defined
and in result it broke rendering of 2 deployment
components that assumed the data is present.

Issue-ID: OOM-3376
Change-Id: I7d68b4e0668e060501a71c9997f64f08976de3b2
Signed-off-by: Marek Szwalkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml
kubernetes/platform/components/oom-cert-service/templates/deployment.yaml

index 3513c21..25c7ade 100644 (file)
@@ -34,10 +34,10 @@ spec:
         control-plane: controller-manager
       {{- if (include "common.onServiceMesh" . | nindent 6 ) }}
       annotations:
-      {{- if eq ( .Values.global.serviceMesh.engine ) "linkerd" }}
+      {{- if and .Values.global.serviceMesh (eq .Values.global.serviceMesh.engine "linkerd") }}
         linkerd.io/inject: disabled
       {{- end }}
-      {{- if eq ( .Values.global.serviceMesh.engine ) "istio" }}
+      {{- if and .Values.global.serviceMesh (eq .Values.global.serviceMesh.engine "istio") }}
           traffic.sidecar.istio.io/excludeInboundPorts: "8080,8443"
           traffic.sidecar.istio.io/includeInboundPorts: '*'
       {{- end }}
index e74c542..ea85332 100644 (file)
@@ -24,10 +24,10 @@ spec:
     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
       {{- if (include "common.onServiceMesh" . ) }}
       annotations:
-      {{- if eq ( .Values.global.serviceMesh.engine ) "linkerd" }}
+      {{- if and .Values.global.serviceMesh (eq .Values.global.serviceMesh.engine "linkerd") }}
         linkerd.io/inject: disabled
       {{- end }}
-      {{- if eq ( .Values.global.serviceMesh.engine ) "istio" }}
+      {{- if and .Values.global.serviceMesh (eq .Values.global.serviceMesh.engine "istio") }}
           traffic.sidecar.istio.io/excludeInboundPorts: "8080,8443"
           traffic.sidecar.istio.io/includeInboundPorts: '*'
       {{- end }}