Skip to content

Commit

Permalink
feat: adapt chart for traefik v3
Browse files Browse the repository at this point in the history
  • Loading branch information
omohammed95 committed Feb 6, 2025
1 parent 144b5d3 commit 9289d3f
Show file tree
Hide file tree
Showing 11 changed files with 210 additions and 201 deletions.
10 changes: 5 additions & 5 deletions celebrimbor/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{- if .Values.ingress.enabled -}}
{{- with .Values.ingress.IPWhiteList }}
{{- with .Values.ingress.IPAllowList }}
---
apiVersion: traefik.containo.us/v1alpha1
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: "ip-{{ include "celebrimbor.fullname" $ }}"
spec:
ipWhiteList:
IPAllowList:
sourceRange:
{{- range . }}
- {{ . | quote -}}
Expand All @@ -30,7 +30,7 @@ spec:
secretName: "{{ include "celebrimbor.fullname" $ }}-tls"
{{ end }}
---
apiVersion: traefik.containo.us/v1alpha1
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: "{{ include "celebrimbor.fullname" . }}"
Expand All @@ -41,7 +41,7 @@ spec:
{{- range .Values.ingress.hosts }}
- kind: Rule
match: Host(`{{ . }}`)
{{- if $.Values.ingress.IPWhiteList }}
{{- if $.Values.ingress.IPAllowList }}
middlewares:
- name: "ip-{{ include "celebrimbor.fullname" $ }}"
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion celebrimbor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ingress:
hosts:
- chart-example.local
- other.name
IPWhiteList: []
IPAllowList: []

resources:
nginx:
Expand Down
Loading

0 comments on commit 9289d3f

Please sign in to comment.