File tree Expand file tree Collapse file tree 6 files changed +53
-24
lines changed
Expand file tree Collapse file tree 6 files changed +53
-24
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ apiVersion: v2
55name : lfx-platform
66description : LFX Platform v2 Helm chart
77type : application
8- version : 0.1.11
8+ version : 0.1.12
99icon : https://github.com/linuxfoundation/lfx-v2-helm/raw/main/img/lfx-logo-color.svg
1010dependencies :
1111 - name : traefik
Original file line number Diff line number Diff line change 11# Copyright The Linux Foundation and each contributor to LFX.
22# SPDX-License-Identifier: MIT
33---
4- {{ if and .Values.heimdall.enabled .Values.traefik.enabled -}}
4+ {{ if and .Values.heimdall.enabled (or
5+ .Values.traefik.enabled .Values.lfx.parentGateway.enabled) -}}
56apiVersion : traefik.io/v1alpha1
67kind : Middleware
78metadata :
Original file line number Diff line number Diff line change 11# Copyright The Linux Foundation and each contributor to LFX.
22# SPDX-License-Identifier: MIT
33---
4- {{ if and .Values.mailpit.enabled .Values.traefik.enabled -}}
4+ {{ if and .Values.mailpit.enabled (or
5+ .Values.traefik.enabled .Values.lfx.parentGateway.enabled) -}}
56apiVersion : gateway.networking.k8s.io/v1
67kind : HTTPRoute
78metadata :
89 name : {{ include "common.names.fullname" .Subcharts.mailpit }}
910 namespace : {{ .Release.Namespace }}
1011spec :
1112 parentRefs :
13+ {{- if .Values.traefik.enabled }}
1214 - name : {{ .Values.traefik.gateway.name }}
1315 sectionName : {{ include "lfx-platform.default-listener" . }}
1416 namespace : {{ .Release.Namespace }}
17+ {{- else }}
18+ - name : {{ .Values.lfx.parentGateway.name }}
19+ sectionName : {{ .Values.lfx.parentGateway.sectionName }}
20+ namespace : {{ .Values.lfx.parentGateway.namespace }}
21+ {{- end }}
1522 hostnames :
1623 - ' mailpit.{{ .Values.lfx.domain }}'
1724 rules :
Original file line number Diff line number Diff line change 11# Copyright The Linux Foundation and each contributor to LFX.
22# SPDX-License-Identifier: MIT
33---
4- {{ if and .Values.mailpit.enabled .Values.traefik.enabled (include "lfx-platform.https-enabled" .) -}}
4+ {{ if and .Values.mailpit.enabled (include "lfx-platform.https-enabled" .) (or
5+ .Values.traefik.enabled .Values.lfx.parentGateway.enabled) -}}
56apiVersion : gateway.networking.k8s.io/v1
67kind : HTTPRoute
78metadata :
89 name : mailpit-https-redirect
910 namespace : {{ .Release.Namespace }}
1011spec :
1112 parentRefs :
13+ {{- if .Values.traefik.enabled }}
1214 - name : {{ .Values.traefik.gateway.name }}
1315 sectionName : {{ include "lfx-platform.http-listener" . }}
1416 namespace : {{ .Release.Namespace }}
17+ {{- else }}
18+ - name : {{ .Values.lfx.parentGateway.name }}
19+ sectionName : {{ .Values.lfx.parentGateway.sectionName }}
20+ namespace : {{ .Values.lfx.parentGateway.namespace }}
21+ {{- end }}
1522 hostnames :
1623 - ' mailpit.{{ .Values.lfx.domain }}'
1724 rules :
Original file line number Diff line number Diff line change 11# Copyright The Linux Foundation and each contributor to LFX.
22# SPDX-License-Identifier: MIT
33---
4- {{- if and .Values.lfx.whoami.enabled .Values.traefik.enabled }}
4+ {{- if and .Values.lfx.whoami.enabled (or
5+ .Values.traefik.enabled .Values.lfx.parentGateway.enabled) }}
56apiVersion : gateway.networking.k8s.io/v1
67kind : HTTPRoute
78metadata :
89 name : whoami
910 namespace : {{ .Release.Namespace }}
1011spec :
1112 parentRefs :
12- - name : {{ .Values.traefik.gateway.name }}
13- namespace : {{ .Release.Namespace }}
13+ {{- if .Values.traefik.enabled }}
14+ - name : {{ .Values.traefik.gateway.name }}
15+ sectionName : {{ include "lfx-platform.default-listener" . }}
16+ namespace : {{ .Release.Namespace }}
17+ {{- else }}
18+ - name : {{ .Values.lfx.parentGateway.name }}
19+ sectionName : {{ .Values.lfx.parentGateway.sectionName }}
20+ namespace : {{ .Values.lfx.parentGateway.namespace }}
21+ {{- end }}
1422 hostnames :
15- - " lfx-api.{{ .Values.lfx.domain }}"
23+ - " lfx-api.{{ .Values.lfx.domain }}"
1624 rules :
17- # Main application endpoints (with authentication)
18- - matches :
19- - path :
20- type : Exact
21- value : /whoami
22- {{- if .Values.heimdall.enabled }}
23- filters :
24- - type : ExtensionRef
25- extensionRef :
26- group : traefik.io
27- kind : Middleware
28- name : heimdall
29- {{- end }}
30- backendRefs :
31- - name : whoami
32- port : 80
25+ # Main application endpoints (with authentication)
26+ - matches :
27+ - path :
28+ type : Exact
29+ value : /whoami
30+ {{- if .Values.heimdall.enabled }}
31+ filters :
32+ - type : ExtensionRef
33+ extensionRef :
34+ group : traefik.io
35+ kind : Middleware
36+ name : heimdall
37+ {{- end }}
38+ backendRefs :
39+ - name : whoami
40+ port : 80
3341{{- end }}
Original file line number Diff line number Diff line change 2323 # local dev with authelia
2424 use_oidc_contextualizer : true
2525
26+ # Fallback gateway can be enabled if traefik.enabled is false.
27+ parentGateway :
28+ enabled : false
29+ name : traefik
30+ sectionName : websecure
31+ namespace : default
2632
2733fga-operator :
2834 enabled : true
You can’t perform that action at this time.
0 commit comments