Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit e39105a

Browse files
authored
Merge pull request #22 from GoneUp/ingress_update
Update Ingress to use networking.k8s.io/v1 (#21)
2 parents 8be01c9 + 1008ae3 commit e39105a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v2
33
name: swaggerui
4-
version: 0.3.4
4+
version: 0.3.5
55
appVersion: 3.24.3
66
description: Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services.
77
keywords:

templates/ingress.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
{{- if .Values.ingress.enabled }}
33
{{- $fullName := include "swagger-ui.fullname" . -}}
44
{{- $ingressPath := .Values.ingress.path -}}
5-
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
5+
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
6+
apiVersion: networking.k8s.io/v1
7+
{{ else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
68
apiVersion: networking.k8s.io/v1beta1
79
{{ else }}
810
apiVersion: extensions/v1beta1
@@ -36,8 +38,17 @@ spec:
3638
http:
3739
paths:
3840
- path: {{ $ingressPath }}
41+
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
42+
pathType: "ImplementationSpecific"
43+
backend:
44+
service:
45+
name: {{ $fullName }}
46+
port:
47+
name: http
48+
{{- else }}
3949
backend:
4050
serviceName: {{ $fullName }}
4151
servicePort: http
42-
{{- end }}
52+
{{- end }}
53+
{{- end }}
4354
{{- end }}

0 commit comments

Comments
 (0)