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: