X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fhelm%2Fosm%2Ftemplates%2Fwebhook_translator%2Fwebhook-translator-service.yaml;h=11d250813d804b972f1323bcd71c60ff1f5e3483;hb=027f8ee24f2293c0ae049ecccf31be000da72e85;hp=97a426f0da95f5d92f13e3c7c295a363d4c010da;hpb=8080e4b32d3dc5e66ea85a503a4daa79df3098d0;p=osm%2Fdevops.git diff --git a/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml b/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml index 97a426f0..11d25081 100644 --- a/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml +++ b/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml @@ -23,11 +23,13 @@ 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: 80 - targetPort: 80 + - port: {{ default 9998 .Values.webhookTranslator.service.port }} + {{- if .Values.webhookTranslator.service.nodePort }} + nodePort: {{ .Values.webhookTranslator.service.nodePort }} + {{- end }} + targetPort: 9998 protocol: TCP selector: app.kubernetes.io/component: webhook-translator