From 0e50be49a63273e8ede95afe34f27ea5113fa5cb Mon Sep 17 00:00:00 2001 From: Vadim Petrov Date: Fri, 13 Oct 2023 17:58:19 +0200 Subject: [PATCH] Support deployment annotations --- charts/spark-operator-chart/templates/deployment.yaml | 4 ++++ charts/spark-operator-chart/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/spark-operator-chart/templates/deployment.yaml b/charts/spark-operator-chart/templates/deployment.yaml index 959e4ed1b..c4823a642 100644 --- a/charts/spark-operator-chart/templates/deployment.yaml +++ b/charts/spark-operator-chart/templates/deployment.yaml @@ -10,6 +10,10 @@ metadata: name: {{ include "spark-operator.fullname" . }} labels: {{- include "spark-operator.labels" . | nindent 4 }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/charts/spark-operator-chart/values.yaml b/charts/spark-operator-chart/values.yaml index f169df474..0660871c3 100644 --- a/charts/spark-operator-chart/values.yaml +++ b/charts/spark-operator-chart/values.yaml @@ -136,6 +136,9 @@ tolerations: [] # affinity -- Affinity for pod assignment affinity: {} +# annotations -- Additional annotations to add to the deployment +annotations: {} + # podAnnotations -- Additional annotations to add to the pod podAnnotations: {}