projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Revert "Feature 11010: Use of upstream helm charts for Prometheus and Grafana...
[osm/devops.git]
/
installers
/
helm
/
osm
/
templates
/
webhook_translator
/
webhook-translator-service.yaml
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
97a426f
..
11d2508
100644
(file)
--- 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:
labels:
{{- include "osm.labels" . | nindent 4 }}
spec:
- type: {{ .Values.webhookTranslator.service.type }}
+ type: {{
default "ClusterIP"
.Values.webhookTranslator.service.type }}
ports:
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
protocol: TCP
selector:
app.kubernetes.io/component: webhook-translator