Feature 11037 Installation of ingress controller in OSM community installer
[osm/devops.git] / installers / helm / osm / templates / webhook_translator / webhook-translator-service.yaml
index 0fb1d8e..11d2508 100644 (file)
@@ -23,10 +23,12 @@ metadata:
   labels:
     {{- include "osm.labels" . | nindent 4 }}
 spec:
-  type: {{ .Values.webhookTranslator.service.type }}
+  type: {{ default "ClusterIP" .Values.webhookTranslator.service.type }}
   ports:
-    - nodePort: {{ .Values.webhookTranslator.service.nodePort }}
-      port: {{ .Values.webhookTranslator.service.port }}
+    - port: {{ default 9998 .Values.webhookTranslator.service.port }}
+    {{- if .Values.webhookTranslator.service.nodePort }}
+      nodePort: {{ .Values.webhookTranslator.service.nodePort }}
+    {{- end }}
       targetPort: 9998
       protocol: TCP
   selector: