From ed612b55a50e3d7d8c5841f6a0c19e8e416f5fd7 Mon Sep 17 00:00:00 2001 From: Viktor Bogdanov Date: Mon, 30 Sep 2019 10:27:37 +0800 Subject: [PATCH] Add service annotations (#17350) Signed-off-by: Viktor Bogdanov Signed-off-by: vvbogdanov87 --- stable/spark-history-server/Chart.yaml | 2 +- stable/spark-history-server/README.md | 1 + stable/spark-history-server/templates/service.yaml | 4 ++++ stable/spark-history-server/values.yaml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/spark-history-server/Chart.yaml b/stable/spark-history-server/Chart.yaml index 717cd5536c..f21c0bdfc2 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.0.1 +version: 1.1.0 appVersion: 2.4.0 description: A Helm chart for Spark History Server home: https://spark.apache.org diff --git a/stable/spark-history-server/README.md b/stable/spark-history-server/README.md index c453813133..425b7e0722 100644 --- a/stable/spark-history-server/README.md +++ b/stable/spark-history-server/README.md @@ -117,6 +117,7 @@ Note that the default image `lightbend/spark-history-server` is built using this | image.tag |The tag of the image|2.4.0| | service.type |The type of history server service that exposes the UI|LoadBalancer| | service.port |The port on which the service UI can be accessed.|18080| +| service.annotations | annotations for the service | {} | | pvc.enablePVC |Whether to use PVC storage|true| | pvc.existingClaimName |The pre-created PVC name|nfs-pvc| | pvc.eventsDir |The log directory when PVC is used|/| diff --git a/stable/spark-history-server/templates/service.yaml b/stable/spark-history-server/templates/service.yaml index 3f22ff786b..5ac7062d6a 100644 --- a/stable/spark-history-server/templates/service.yaml +++ b/stable/spark-history-server/templates/service.yaml @@ -7,6 +7,10 @@ metadata: helm.sh/chart: {{ include "spark-history-server.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} + {{- if .Values.service.annotations }} + annotations: +{{ toYaml .Values.service.annotations | trim | indent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/stable/spark-history-server/values.yaml b/stable/spark-history-server/values.yaml index 4f368029ec..9592f5c699 100644 --- a/stable/spark-history-server/values.yaml +++ b/stable/spark-history-server/values.yaml @@ -17,6 +17,7 @@ image: service: type: LoadBalancer port: 18080 + annotations: {} environment: # Note: do not configure Spark history events directory using SPARK_HISTORY_OPTS. It will be