diff --git a/stable/spark-history-server/Chart.yaml b/stable/spark-history-server/Chart.yaml index 62deb7f..8cf0995 100644 --- a/stable/spark-history-server/Chart.yaml +++ b/stable/spark-history-server/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0 +version: 1.2.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/stable/spark-history-server/templates/ingress.yaml b/stable/spark-history-server/templates/ingress.yaml index ef97514..c1f91fc 100644 --- a/stable/spark-history-server/templates/ingress.yaml +++ b/stable/spark-history-server/templates/ingress.yaml @@ -1,4 +1,5 @@ {{- if .Values.ingress.enabled -}} +{{- $serviceExternalPort := .Values.service.externalPort -}} {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1 {{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} @@ -16,6 +17,7 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + ingressClassName: {{ .Values.ingress.ingressClassName }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} @@ -33,9 +35,12 @@ spec: paths: {{- range .paths }} - path: {{ . }} + pathType: Prefix backend: - serviceName: {{ include "spark-history-server.fullname" . }} - servicePort: {{ .Values.service.externalPort }} + service: + name: {{ include "spark-history-server.fullname" $ }} + port: + number: {{ $serviceExternalPort }} {{- end }} {{- end }} {{- end }} diff --git a/stable/spark-history-server/values.yaml b/stable/spark-history-server/values.yaml index 60aedc1..84c28a4 100644 --- a/stable/spark-history-server/values.yaml +++ b/stable/spark-history-server/values.yaml @@ -55,6 +55,12 @@ service: ingress: enabled: false annotations: {} + ## Set below values when ingress is enabled + # ingressClassName: + # hosts: + # - host: + # paths: + # - resources: limits: