Skip to content

Commit b3a656b

Browse files
fix(geth-swap): support traefik v3 CRD api group
1 parent 0ddd1f3 commit b3a656b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

charts/geth-swap/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type: application
2020

2121
# This is the chart version. This version number should be incremented each time you make changes
2222
# to the chart and its templates, including the app version.
23-
version: 0.6.1
23+
version: 0.6.2
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application.

charts/geth-swap/templates/ingress.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
{{- $svcPort := .Values.service.port -}}
44
{{- if eq .Values.ingress.class "traefik" -}}
55
{{- $namespace := .Release.Namespace -}}
6+
{{- if .Capabilities.APIVersions.Has "traefik.io/v1alpha1" }}
7+
apiVersion: traefik.io/v1alpha1
8+
{{- else }}
69
apiVersion: traefik.containo.us/v1alpha1
10+
{{- end }}
711
kind: IngressRoute
812
metadata:
913
name: {{ $fullName }}

0 commit comments

Comments
 (0)