Skip to content

The Unified and Autonomous Development Platform

chore: remove setting ingress.port.name as it is always "http"

Robin Shenc6bde3956e61
diff --git a/server-product/helm/templates/ingress.yaml b/server-product/helm/templates/ingress.yaml
index b5cbea30de..26b8ac5272 100644
--- a/server-product/helm/templates/ingress.yaml
+++ b/server-product/helm/templates/ingress.yaml
@@ -44,11 +44,7 @@ spec:
service:
name: {{ include "ods.fullname" $ }}
port:
- {{- if .Values.ingress.port.name }}
- name: {{ .Values.ingress.port.name }}
- {{- else }}
- number: {{ default "80" .Values.service.ports.http }}
- {{- end }}
+ name: "http"
{{- else }}
serviceName: {{ include "ods.fullname" $ }}
servicePort: {{ default "80" .Values.service.ports.http }}
diff --git a/server-product/helm/values.yaml b/server-product/helm/values.yaml
index 92a3d7b8f6..24a3338282 100644
--- a/server-product/helm/values.yaml
+++ b/server-product/helm/values.yaml
@@ -230,10 +230,6 @@ ingress:
# kubernetes.io/tls-acme: "true"
# ingress.host -- Set the host name
host: onedev.example.com
- # ingress.port.name -- Specify the port name or number on the Service
- # Using name requires Kubernetes >=1.19
- port:
- name: "http"
# ingress.tls -- Configure TLS for the Ingress.
tls: