Skip to content

Commit

Permalink
add imap service
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Sep 28, 2023
1 parent 96b1079 commit cd1b679
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/alfresco-repository/templates/service-imap.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit cd1b679

Please sign in to comment.