From da82903c303a9e720d8511c1fad93fb75c58a874 Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Thu, 18 May 2023 21:50:51 +0100 Subject: [PATCH] Allow annotating media-repo service. --- charts/matrix-media-repo/templates/service.yaml | 4 ++++ charts/matrix-media-repo/values.yaml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/matrix-media-repo/templates/service.yaml b/charts/matrix-media-repo/templates/service.yaml index 5f576ff..d17868b 100644 --- a/charts/matrix-media-repo/templates/service.yaml +++ b/charts/matrix-media-repo/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "matrix-media-repo.fullname" . }} labels: {{- include "matrix-media-repo.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/matrix-media-repo/values.yaml b/charts/matrix-media-repo/values.yaml index 0f7f355..65f0720 100644 --- a/charts/matrix-media-repo/values.yaml +++ b/charts/matrix-media-repo/values.yaml @@ -174,6 +174,7 @@ securityContext: {} service: type: ClusterIP port: 80 + annotations: {} ## Ingress configuration. ## @@ -241,4 +242,4 @@ annotations: {} ## Deployment labels ## -labels: {} \ No newline at end of file +labels: {}