Browse Source

Support k8s >= 1.22 ingress API

See https://github.com/wekan/charts/pull/1
Varac 3 years ago
parent
commit
b84cc037c1
4 changed files with 10 additions and 8 deletions
  1. 1 0
      .gitignore
  2. 0 1
      helm/wekan/charts/.gitkeep
  3. 7 6
      helm/wekan/templates/ingress.yaml
  4. 2 1
      helm/wekan/values.yaml

+ 1 - 0
.gitignore

@@ -38,3 +38,4 @@ ehthumbs.db
 # Helm chart
 # Chart dependencies
 /helm/wekan/**/*.tgz
+/helm/wekan/charts

+ 0 - 1
helm/wekan/charts/.gitkeep

@@ -1 +0,0 @@
-

+ 7 - 6
helm/wekan/templates/ingress.yaml

@@ -2,7 +2,8 @@
 {{- $fullName := include "wekan.fullname" . -}}
 {{- $servicePort := .Values.service.port -}}
 {{- $ingressPath := .Values.ingress.path -}}
-apiVersion: networking.k8s.io/v1beta1
+{{- $ingressPathType := .Values.ingress.pathtype -}}
+apiVersion: networking.k8s.io/v1
 kind: Ingress
 metadata:
   name: {{ $fullName }}
@@ -27,17 +28,17 @@ spec:
       secretName: {{ .secretName }}
   {{- end }}
 {{- end }}
-  backend:
-    serviceName: {{ $fullName }}
-    servicePort: 8080
   rules:
   {{- range .Values.ingress.hosts }}
     - host: {{ . }}
       http:
         paths:
           - path: {{ $ingressPath }}
+            pathType: {{ $ingressPathType }}
             backend:
-              serviceName: {{ $fullName }}
-              servicePort: 8080
+              service:
+                name: {{ $fullName }}
+                port:
+                  number: 8080
   {{- end }}
 {{- end }}

+ 2 - 1
helm/wekan/values.yaml

@@ -14,7 +14,7 @@ serviceAccounts:
 ##
 image:
   repository: quay.io/wekan/wekan
-  tag: v5.83
+  tag: v5.65
   pullPolicy: IfNotPresent
 
 ## Configuration for wekan component
@@ -56,6 +56,7 @@ ingress:
     # kubernetes.io/ingress.class: nginx
     # kubernetes.io/tls-acme: "true"
   path: /*
+  pathtype: ImplementationSpecific
   # This must match 'endpoint', unless your client supports different
   # hostnames.
   hosts: [ wekan.local ]