From 7956c08eb50fbbe06b1c81752b7794e94d817a77 Mon Sep 17 00:00:00 2001 From: Amadeusz Kryze Date: Wed, 20 Jul 2022 12:16:34 +0200 Subject: [PATCH] Annotation for service LonghornManager will be configurable. Signed-off-by: Amadeusz Kryze (cherry picked from commit 1e7289dfe0b882138c7075ba0f8e2cf87eadc055) --- chart/templates/daemonset-sa.yaml | 4 ++++ chart/values.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index c9ad974..01f1c5f 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -127,6 +127,10 @@ metadata: app: longhorn-manager name: longhorn-backend namespace: {{ include "release_namespace" . }} + {{- if .Values.longhornManager.serviceAnnotations }} + annotations: +{{ toYaml .Values.longhornManager.serviceAnnotations | indent 4 }} + {{- end }} spec: type: {{ .Values.service.manager.type }} sessionAffinity: ClientIP diff --git a/chart/values.yaml b/chart/values.yaml index 8c80cfe..5cef833 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -157,6 +157,11 @@ longhornManager: ## and uncomment this example block # label-key1: "label-value1" # label-key2: "label-value2" + serviceAnnotations: {} + ## If you want to set annotations for the Longhorn Manager delete the `{}` in the line above + ## and uncomment this example block + # annotation-key1: "annotation-value1" + # annotation-key2: "annotation-value2" longhornDriver: priorityClass: ~