Skip to content

The Unified and Autonomous Development Platform

chore: remove ingress.tls.host and use ingress.host instead for DRY reason

Robin Shen1ac1790234cf
diff --git a/server-product/helm/templates/ingress.yaml b/server-product/helm/templates/ingress.yaml
index d574f06359..b5cbea30de 100644
--- a/server-product/helm/templates/ingress.yaml
+++ b/server-product/helm/templates/ingress.yaml
@@ -28,7 +28,7 @@ spec:
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- - {{ .Values.ingress.tls.host }}
+ - {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- end }}
rules:
diff --git a/server-product/helm/values.yaml b/server-product/helm/values.yaml
index 13c2026a03..92a3d7b8f6 100644
--- a/server-product/helm/values.yaml
+++ b/server-product/helm/values.yaml
@@ -239,7 +239,6 @@ ingress:
tls:
enabled: false
secretName: "onedev-tls"
- host: onedev.example.com
# extraVolumes -- Specify additional Volumes to use.
extraVolumes: []