Skip to content

Commit

Permalink
Fix helm templates for mailhog
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushroshan committed May 10, 2024
1 parent 1c5162a commit 8b9aaff
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/templates/mailhog/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.mailhog.webService.name }}
name: {{ .Values.mailhog.webService.name }}-ingress
namespace: {{ .Values.mailhog.namespace }}
labels:
release: {{ .Release.Name }}
Expand Down
19 changes: 19 additions & 0 deletions deploy/helm/templates/mailhog/webservice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.mailhog.webService.name }}
namespace: {{ .Values.mailhog.namespace }}
labels:
release: {{ .Release.Name }}
{{- with .Values.mailhog.webService.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- name: smtp
port: {{ .Values.mailhog.webPort }}
protocol: TCP
selector:
{{- toYaml .Values.mailhog.serviceSelectorLabels | nindent 4 }}
sessionAffinity: None
type: ClusterIP
2 changes: 1 addition & 1 deletion deploy/helm/templates/web/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ data:
COMMUNITY_SERVICE: {{ .Values.community.service.name }}:{{ .Values.community.port }}
IDENTITY_SERVICE: {{ .Values.identity.service.name }}:{{ .Values.identity.port }}
WORKSHOP_SERVICE: {{ .Values.workshop.service.name }}:{{ .Values.workshop.port }}
MAILHOG_WEB_SERVICE: {{ .Values.mailhog.service.name }}:{{ .Values.mailhog.webPort }}
MAILHOG_WEB_SERVICE: {{ .Values.mailhog.webService.name }}:{{ .Values.mailhog.webPort }}
TLS_ENABLED: {{ .Values.tlsEnabled | quote }}

0 comments on commit 8b9aaff

Please sign in to comment.