Skip to content

Commit

Permalink
feat: configure ingress for samba service and add relevant labels to …
Browse files Browse the repository at this point in the history
…service
  • Loading branch information
jpkraemer-mg committed Dec 17, 2024
1 parent 4932ae6 commit e66e494
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/4allportal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.10.38"
description: A Helm chart for 4ALLPORTAL version 3.10.0 and up
name: 4allportal
version: 20.1.1
version: 20.1.2
icon: https://4allportal.com/wp-content/uploads/2022/07/cropped-4ap_logo.png
keywords:
- 4ALLPORTAL
Expand Down
9 changes: 9 additions & 0 deletions charts/4allportal/templates/4allportal/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ spec:
pathType: Prefix
{{- end }}

{{- if .Values.samba.enabled }}
- path: "/smb"
backend:
name: {{ .Values.samba.service.prefix | default "portals" }}-samba-server.{{ .Values.samba.service.prefix | default "portals" }}
port:
name: ws
pathType: Prefix
{{- end }}

{{- range $name, $ingress := .Values.fourAllPortal.ingress.additionalHosts }}
- host: {{ required "You must provide a host, when enabling ingress" $ingress.host | quote }}
http:
Expand Down
5 changes: 5 additions & 0 deletions charts/4allportal/templates/samba/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ kind: Service
metadata:
name: "{{ include "common.names.fullname" $ }}-samba"
namespace: {{ .Release.Namespace }}
labels:
samba-service: enabled
{{- if .Values.fourAllPortal.ingress.enabled }}
hostname: {{ .Values.fourAllPortal.ingress.host }}
{{- end }}
spec:
ports:
- name: smb
Expand Down

0 comments on commit e66e494

Please sign in to comment.