From cd1b679a12dfc543537cc3e9f4a6c9c21a247c6e Mon Sep 17 00:00:00 2001 From: Alexandre Chapellon Date: Thu, 28 Sep 2023 23:51:05 +0200 Subject: [PATCH] add imap service --- .../templates/service-imap.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 charts/alfresco-repository/templates/service-imap.yaml diff --git a/charts/alfresco-repository/templates/service-imap.yaml b/charts/alfresco-repository/templates/service-imap.yaml new file mode 100644 index 000000000..52f2f6548 --- /dev/null +++ b/charts/alfresco-repository/templates/service-imap.yaml @@ -0,0 +1,23 @@ +{{- with .Values.configuration.imap }} +{{- if .enabled }} +apiVersion: v1 +kind: Service +metadata: + {{- $imapCtx := dict "Values" (dict "nameOverride" (printf "%s-%s" ($.Values.nameOverride | default $.Chart.Name) .protocol)) "Chart" $.Chart "Release" $.Release }} + name: {{ include "alfresco-repository.fullname" $imapCtx }} + labels: + {{- include "alfresco-repository.labels" $imapCtx | nindent 4 }} + annotations: + {{- toYaml .annotations | nindent 4 }} +spec: + type: LoadBalancer + externalTrafficPolicy: Local + ports: + - port: {{ .port }} + targetPort: {{ .port }} + protocol: TCP + name: {{ .protocol }} + selector: + {{- include "alfresco-repository.selectorLabels" $ | nindent 4 }} +{{- end }} +{{- end }}