Skip to content

Commit

Permalink
Allow to set annotations for the UI service
Browse files Browse the repository at this point in the history
 Signed-off-by: Riccardo Petraglia <[email protected]>
  • Loading branch information
grhawk committed Jun 25, 2023
1 parent 728dfbc commit 2b4fc47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/longhorn/templates/deployment-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ metadata:
{{- end }}
name: longhorn-frontend
namespace: {{ include "release_namespace" . }}
spec:
{{- if .Values.longhornManager.serviceAnnotations }}
annotations:
{{ toYaml .Values.longhornManager.serviceAnnotations | indent 4 }}
{{- end }}
sspec:
{{- if eq .Values.service.ui.type "Rancher-Proxy" }}
type: ClusterIP
{{- else }}
Expand Down
5 changes: 5 additions & 0 deletions charts/longhorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ longhornUI:
## and uncomment this example block
# label-key1: "label-value1"
# label-key2: "label-value2"
serviceAnnotations: {}
## If you want to set annotations for the Longhorn Manager service, delete the `{}` in the line above
## and uncomment this example block
# annotation-key1: "annotation-value1"
# annotation-key2: "annotation-value2"

longhornConversionWebhook:
replicas: 2
Expand Down

0 comments on commit 2b4fc47

Please sign in to comment.