From 1e7289dfe0b882138c7075ba0f8e2cf87eadc055 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 --- 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 94772af..28c9b7e 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -117,6 +117,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 cb3644e..d3987df 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -141,6 +141,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: ~