From e48eaa3b5a92ac60671a2fb4ddf9df8d6d582b4e Mon Sep 17 00:00:00 2001 From: Gao Ming <38421396+minggaograb@users.noreply.github.com> Date: Tue, 10 Nov 2020 06:36:23 +0800 Subject: [PATCH] [stable/spark-history-server] servicePort should retrieve from Values (#24219) * servicePort should retrieve from Values servicePort should retrieve from Values. This dis-matching with service.yaml file will cause ingress creation failure. Signed-off-by: ming.gao * Use .service.port.number for Ingress Backend. Default service name exceed length limit. Signed-off-by: ming.gao Co-authored-by: ming.gao --- stable/spark-history-server/Chart.yaml | 2 +- stable/spark-history-server/templates/ingress.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/spark-history-server/Chart.yaml b/stable/spark-history-server/Chart.yaml index dbb3149f0c..b7cb3ba4ce 100644 --- a/stable/spark-history-server/Chart.yaml +++ b/stable/spark-history-server/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: spark-history-server -version: 1.4.1 +version: 1.4.2 appVersion: 2.4.0 description: A Helm chart for Spark History Server home: https://spark.apache.org diff --git a/stable/spark-history-server/templates/ingress.yaml b/stable/spark-history-server/templates/ingress.yaml index 7c0e966b02..bdbf418a0b 100644 --- a/stable/spark-history-server/templates/ingress.yaml +++ b/stable/spark-history-server/templates/ingress.yaml @@ -22,7 +22,7 @@ spec: - path: {{ $.Values.ingress.path }} backend: serviceName: {{ $fullname }} - servicePort: historyport + servicePort: {{ .Values.service.port.number }} {{- end -}} {{- if .Values.ingress.tls }} tls: